WithQdrant doesn't allow specifying the collection #568
Replies: 5 comments
-
hi @JohnGalt1717 you can specify the collection using the |
Beta Was this translation helpful? Give feedback.
-
Can you elaborate? I don't see an Index property or method or parameter anywhere on Memory in C#. |
Beta Was this translation helpful? Give feedback.
-
please see https://github.com/microsoft/kernel-memory/blob/main/service/Core/MemoryStorage/Qdrant/QdrantMemory.cs which implements |
Beta Was this translation helpful? Give feedback.
-
similarly |
Beta Was this translation helpful? Give feedback.
-
Here's a couple of examples, I hope this is what you were looking for - see the var docId = await memory.ImportTextAsync(
"In physics, mass–energy equivalence is the relationship between mass and energy " +
"in a system's rest frame, where the two quantities differ only by a multiplicative " +
"constant and the units of measurement. The principle is described by the physicist " +
"Albert Einstein's formula: E = m*c^2",
index: "myindex"); await memory.ImportDocumentAsync(
"file1-Wikipedia-Carbon.txt",
documentId: "doc001",
index: "myindex"); |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
... and I can't figure out any other way to specify which collection should be used.
Is there a way to specify this? Can this be opened up to include the collection?
Beta Was this translation helpful? Give feedback.
All reactions