Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update weaviate_vector.py #654

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

Navanit-git
Copy link
Contributor

The bedrock was not working because the client was not recognised, so getting a value error. After adding client now its giving the response we need.

The bedrock was not working because the client was not recognised, so getting a value error.
After adding client now its giving the response we need.
@Navanit-git
Copy link
Contributor Author

@zainhoda Kindly do the review

@@ -7,7 +7,7 @@

class WeaviateDatabase(VannaBase):

def __init__(self, config=None):
def __init__(self, config=None,client= None):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to set the client directly, you should aim to do something like that is done for Chroma.

See here:
https://github.com/vanna-ai/vanna/blob/main/src/vanna/chromadb/chromadb_vector.py#L23

and here:
https://github.com/vanna-ai/vanna/blob/main/src/vanna/chromadb/chromadb_vector.py#L38

So basically, pass the client as part of the config, and then you likely want to update what is done here, if the client is part of the config:
https://github.com/vanna-ai/vanna/pull/654/files#diff-acb7ec3a110767dae2ec2a321b040ea390d7165a898d49c6ce310180ece936daR39

See the chroma client implementation for inspiration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants