Skip to content

Commit

Permalink
Update embedding.js
Browse files Browse the repository at this point in the history
  • Loading branch information
serefyarar committed Dec 1, 2024
1 parent ac86cd7 commit b44631e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/services/embedding.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ export class EmbeddingService {
return JSON.stringify(itemStream.stream_content);
}));

await collection.add({
await collection.upsert({
ids: newIds,
embeddings: newVectors, // Use existing vectors
metadatas: newMetadatas,
Expand Down

0 comments on commit b44631e

Please sign in to comment.