Find answers from the community

Updated last month

Weaviate

Nice to meet you. My name is やすゆき (yasuyuki).
I didn't know where to ask for help, so please let me ask for help on discord.
There was an issue on github “key error occurs when trying to read existing weaviate database with WeaviateVectorStore”.
https://github.com/run-llama/llama_index/issues/13787
I got this same error, but this issue is closed.

my version:
llama-index-vector-stores-weaviate==1.0.2
weaviate-client==4.7.1

I have applied a simple first aid measure to the following file. So far it has worked. However, I am not yet confident that it will work in all cases.
llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-weaviate/llama_index/vector_stores/weaviate/utils.py
I would like to contribute to the project by suggesting this first aid measure, but what action should I take? Should I post it in the discussion section of github?
L
5 comments
Hey Yasuyuki!

Ya for this specific issue, I think its because you are querying a vector db not created with llama-index

I think the fix for this would involve
  • letting the user specify text, embedding, id, and metadata field names
  • at a minimum we need the text
  • if the other fields aren't present, then they can be left to defaults
If you want to make a PR, you can fork the repo, make some changes, and create a pull request with your changes 🙂 happy to review and help get it merged
Hello @Logan M

Yes, I did. I inserted the data using the Weaviate client with python. I remember that the problem #13787 was caused by the same thing.

The current implementation of llama-index-vector-stores-weaviate tries to get the uuid of the data object with the key as 'id', but the correct key is 'uuid' (but the _WeaviateUUUIDInt type is returned).
If the value cannot be obtained with 'id', it should be obtained with 'uuid', which is the content of the emergency measure.

This is my first experience contributing to OSS. I will be learning about github and how to submit a PR before submitting an actual PR.
Thank you!!
Hello @Logan M

I was finally able to submit a PR.Minor modifications, but learning how to use git and how to submit PRs was a challenge.
It's my first PR 🙂
Please give us your review.Thank you!!
Amazing! I will take a look today 🙂
Add a reply
Sign up and join the conversation on Discord