mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-12-14 15:48:15 +00:00
feat(search-agent): use index + 1 to fix zero errors
This commit is contained in:
@@ -58,7 +58,7 @@ class SearchAgent {
|
|||||||
searchResults?.searchFindings
|
searchResults?.searchFindings
|
||||||
.map(
|
.map(
|
||||||
(f, index) =>
|
(f, index) =>
|
||||||
`<result index=${index} title=${f.metadata.title}>${f.content}</result>`,
|
`<result index=${index + 1} title=${f.metadata.title}>${f.content}</result>`,
|
||||||
)
|
)
|
||||||
.join('\n') || '';
|
.join('\n') || '';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user