-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Description
Describe the bug
The data type of the Id
member in the ScoredPoint
class may need to be changed to int
.
Line 14 in 562ab5b
public string Id { get; } |
To Reproduce
public async Task qdrant_SK_Http_HNSW_index_Cosine_50_ProcessAsync()
{
QdrantMemoryStore memoryStore =
new QdrantMemoryStore
(
GlobalManager.SelfHostQdrantHttpConnectionString
, 6333
, vectorSize: 4
//, ConsoleLogger.Log
);
IKernel kernel = Kernel.Builder
//.WithLogger(ConsoleLogger.Log)
.Configure
(
c =>
{
c.AddOpenAITextCompletionService("text-davinci-003", "123");
c.AddOpenAITextEmbeddingGenerationService("text-embedding-ada-002", "123");
}
)
.WithMemoryStorage(memoryStore)
.Build();
var MemoryCollectionName = "small";
//bug here!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
var searchResults = kernel
.Memory
.SearchAsync
(
MemoryCollectionName
, "My favorite color is orange"
, limit: 20
, minRelevanceScore: 0.8
, withEmbeddings: true
);
await foreach (var item in searchResults)
{
//Console.WriteLine(item.Metadata.Text + " : " + item.Relevance);
_ = item.Relevance;
}
}
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. Windows]
- IDE: [e.g. Visual Studio, VS Code]
- NuGet Package Version [e.g. 0.1.0]
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
No labels