The data type of the `Id` member in the `ScoredPoint` class may need to be changed to `int`.
See original GitHub issueDescribe the bug
The data type of the Id
member in the ScoredPoint
class may need to be changed to int
.
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.
Issue Analytics
- State:
- Created 5 months ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Solved IN JAVA Write a class named Thing that has only
IN JAVA Write a class named Thing that has only an Integer id as data, and includes only: the specifying constructor, an accessor,...
Read more >Qdrant & Text Data
This tutorial will show you how to use Qdrant to develop a semantic search service. At its core, this service will harness Natural...
Read more >Trey CMPS 260 Final Flashcards
Assume the class Event is implemented and imported correctly.Assume the OnceUpon reference variable story has been initialized in main using the default ...
Read more >Points
A point is a record consisting of a vector and an optional payload. You can search among the points grouped in one collection...
Read more >Chap 7 MPL (P2) Flashcards
A data member score of type int. A member function called setName that accepts a parameter and assigns it to name. The function...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Another simple option we can consider:
https://learn.microsoft.com/en-us/dotnet/api/system.text.json.serialization.jsonnumberhandlingattribute
good