mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
fix nimbus search (#45331)
Nimbus search is broken because it expects the page section to be joined with the page table, but this table is called page_nimbus in Nimbus mode. Resolves AI-682 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Fixed source reference attribution to use the correct path when using the alternate search index option. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
1 parent
e7c33bf580
commit
d897c74896
1 file changed
+4
-1
@@ -99,7 +99,10 @@ export async function clippy(
|
||||
break
|
||||
}
|
||||
|
||||
const pagePath = pageSection.page.path
|
||||
const pagePath = options?.useAltSearchIndex
|
||||
? // @ts-ignore
|
||||
pageSection.page_nimbus.path
|
||||
: pageSection.page.path
|
||||
|
||||
// Include source reference with each section
|
||||
contextText += `[Source ${sourceIndex}: ${pagePath}]\n${content.trim()}\n---\n`
|
||||
|
||||
Reference in new issue
Block a user