You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run the code belowed:
`// Placeholder embedding generation method.
async Task<ReadOnlyMemory> GenerateEmbeddingAsync(string textToVectorize)
{
// your logic here
}
// Generate a vector for your search text, using your chosen embedding generation implementation.
ReadOnlyMemory searchVector = await GenerateEmbeddingAsync("I'm looking for a hotel where customer happiness is the priority.");
// Do the search.
var searchResult = await collection.VectorizedSearchAsync(searchVector, new() { Top = 1 });
// Inspect the returned hotel.
await foreach (var record in searchResult.Results)
{
Console.WriteLine("Found hotel description: " + record.Record.Description);
Console.WriteLine("Found record score: " + record.Score);
}`
I get a error:
`Microsoft.Extensions.VectorData.VectorStoreOperationException : Error occurred during vector search. Response: {"errors":[{"locations":[{"column":5,"line":3}],"message":"Cannot query field "skhotels" on type "GetObjectsObj". Did you mean "Skhotels"?","path":null}]}
at Microsoft.SemanticKernel.Connectors.Weaviate.WeaviateVectorStoreRecordCollection1.VectorizedSearchAsync[TVector](TVector vector, VectorSearchOptions options, CancellationToken cancellationToken) ...... --- End of stack trace from previous location ---
The text was updated successfully, but these errors were encountered:
When I run the code belowed:
`// Placeholder embedding generation method.
async Task<ReadOnlyMemory> GenerateEmbeddingAsync(string textToVectorize)
{
// your logic here
}
// Generate a vector for your search text, using your chosen embedding generation implementation.
ReadOnlyMemory searchVector = await GenerateEmbeddingAsync("I'm looking for a hotel where customer happiness is the priority.");
// Do the search.
var searchResult = await collection.VectorizedSearchAsync(searchVector, new() { Top = 1 });
// Inspect the returned hotel.
await foreach (var record in searchResult.Results)
{
Console.WriteLine("Found hotel description: " + record.Record.Description);
Console.WriteLine("Found record score: " + record.Score);
}`
I get a error:
`Microsoft.Extensions.VectorData.VectorStoreOperationException : Error occurred during vector search. Response: {"errors":[{"locations":[{"column":5,"line":3}],"message":"Cannot query field "skhotels" on type "GetObjectsObj". Did you mean "Skhotels"?","path":null}]}
at Microsoft.SemanticKernel.Connectors.Weaviate.WeaviateVectorStoreRecordCollection
1.VectorizedSearchAsync[TVector](TVector vector, VectorSearchOptions options, CancellationToken cancellationToken) ...... --- End of stack trace from previous location ---
The text was updated successfully, but these errors were encountered: