Closed CahidArda closed 3 weeks ago
Fixes two functionality for usage with non-embedding Vector Index:
It was only possible to upsert without data. Vectors without data are not usable in chat. Now it's possible to pass a text with your embedding:
data
await ragChat.context.addMany([ { id: 1, type: "embedding", data: [1, 1, 0], text: "first embedding", // NEW options: { namespace }, }, { id: 2, type: "embedding", data: [1, 0, 1], text: "second embedding", // NEW options: { namespace }, }, ]);
text is added to the data field of the index.
adding embedding option in chat to make it possible to query a non-embedding index with your own embedding
embedding
await ragChat.chat("hello world!", { embedding: [0, 0, 0.5], // NEW onContextFetched, namespace, });
index.addMany is fixed with Promise.all
DX-1398 rag-chat: fix usage with non-embedding vector
Fixes two functionality for usage with non-embedding Vector Index:
It was only possible to upsert without
data
. Vectors withoutdata
are not usable in chat. Now it's possible to pass a text with your embedding:text is added to the data field of the index.
adding
embedding
option in chat to make it possible to query a non-embedding index with your own embeddingFixes
index.addMany is fixed with Promise.all