Skip to content

Commit

Permalink
fix: incorrect collection name
Browse files Browse the repository at this point in the history
  • Loading branch information
satrong committed May 10, 2024
1 parent 063253a commit f702080
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/api/models/chat/index.post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default defineEventHandler(async (event) => {
}

const embeddings = createEmbeddings(knowledgebase.embedding!, event)
const retriever: BaseRetriever = await createRetriever(embeddings, `collection_${knowledgebase.id} `)
const retriever: BaseRetriever = await createRetriever(embeddings, `collection_${knowledgebase.id}`)

const chat = createChatModel(model, family, event)
const query = messages[messages.length - 1].content
Expand Down

0 comments on commit f702080

Please sign in to comment.