Open heinsenberg82 opened 1 month ago
WeaviateVectorData lanchain dotnet uses the semantic kernel implementation, you will have the same problems, the library abstraction is complex and early, surely, they will end up solving these problems, there are many vector database alternatives, my recommendation is to try another one.
https://github.com/tryAGI/LangChain.Databases/blob/main/src/SemanticKernel/src/SemanticKernelMemoryDatabase.cs https://github.com/tryAGI/LangChain.Databases/blob/main/src/Weaviate/src/WeaviateVectorDatabase.cs
We can try to update all dependencies, and it might work if Microsoft already fixed this problem There are some problems with dependabot here, I think it doesn't update it for some reason
I updated all SemanticKernel dependencies, please try to use latest .dev version of LangChain.Databases.Weaviate
I updated all SemanticKernel dependencies, please try to use latest .dev version of LangChain.Databases.Weaviate
Thanks for the feedback. Just upgraded all dependencies, LangChain.Databases.Weaviate
is on 0.15.4-dev.5
now. Unfortunately the error persists.
I imagine the problem is related to this open issue - https://github.com/microsoft/semantic-kernel/issues/6732
The issue was opened almost 4 months ago, and there is no sign of activity. It's disappointing, and gives the impression that Microsoft isn't paying the necessary attention to the Semantic Kernel library.
Digging through the Microsoft documentation, I also came across this article - https://learn.microsoft.com/en-us/semantic-kernel/concepts/vector-store-connectors/out-of-the-box-connectors/weaviate-connector?pivots=programming-language-csharp. The article doesn't even mention the WeaviateMemoryStore
class (which has been abandoned, maybe?).
The article also does not show how to make a semantic search using Weaviate (or any vector database). There is another single article that addresses the subject (https://learn.microsoft.com/en-us/semantic-kernel/concepts/plugins/using-data-retrieval-functions-for-rag), but it contains only a single example with Azure Search. There simply is no documentation or example of a RAG search, with any other Vector Store whatsoever.
With so many Vector Stores currently unusable, I would venture to say that the library is currently useless for RAG purposes.
While reusing SemanticKernel and their working stuff looks like a very good idea, I generally go the other way - through automatic creation/maintenance of SDKs for many popular AI tools and their direct use. While the initial implementation of SDK is trivial, their long-term maintenance is not, when it needs to be monitored regularly. I found the OpenAPI specification for weaviate - https://weaviate.io/developers/weaviate/api/rest, so it is fully suitable for automation via AutoSDK - https://github.com/tryAGI/AutoSDK I think I will publish it in the next few days, I added it to the list, at the moment the initial creation of a new generated SDK takes about an hour, mainly for initial testing, after that it will be possible to implement it as a provider But of course, this is the hard way even so. But this is the way
Describe the bug
I opened a similar issue in the Semantic Kernel repository (it was one of the reasons I came to this repository). https://github.com/microsoft/semantic-kernel/issues/8934
I can't use Weaviate Vector Store with Google Vertex AI (and, I suspect, other integrations with Weaviate may not be working either).
This is my code:
I keep getting the same error:
I suspect that the Semantic Kernel library (responsible for the
WeaviateMemoryStore
class, on which this library is dependent) is not placing the necessary headers in requests managed by the Vector database classes. For instance, the Weaviate documentation (https://weaviate.io/developers/weaviate/model-providers/google/embeddings) says that, for the integration with Vertex AI to work, the Vertex AI API key must be passed in the request header in theX-Google-Vertex-Api-Key field
. In the case of Open AI, it would be theX-OpenAI-Api-Key
field.Alternatively, would there be any way to use Weaviate with this Langchain library without going through the Semantic Kernel?
Steps to reproduce the bug
Execute my code
Expected behavior
No response
Screenshots
No response
NuGet package version
No response
Additional context
No response