Unable to create a vector store in astradb #5575
Replies: 1 comment
-
To resolve the error "Unable to vectorize data, embedding service not configured for the collection" when creating a vector store in Astra DB, you need to ensure that the embedding service is properly configured. Here are the steps to configure it:
Here's a code snippet to guide you through setting up the vectorization options: # Example setup for vectorization
vectorize_options = {
"collection_vector_service_options": {
"provider": "OpenAI", # Example provider
"modelName": "text-embedding-ada-002", # Example model
"authentication": {
"providerKey": "your_api_key_name", # Set your API key name if needed
},
"parameters": {}, # Additional parameters if required
},
"collection_embedding_api_key": "your_provider_api_key", # Set your provider API key if needed
}
# Ensure the vector store is built with these options
vector_store = AstraVectorStoreComponent().build_vector_store(vectorize_options=vectorize_options) Make sure to replace To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Beta Was this translation helpful? Give feedback.
-
I am trying to create a vector store in astra db using csv file and getting this error
This is my data
Beta Was this translation helpful? Give feedback.
All reactions