During Docker startup, an error occurs when reading the configuration of Tencent Cloud's vector database from the "server/main. py" file #3568
orcharddd2024
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
embedding = OpenAIEmbeddings(
)
tencent_vdb_client = TencentVectorDB(
embedding=embedding,
connection_params=ConnectionParams(
url=VDB_URL,
key=VDB_API_KEY,
username="root",
timeout=30
),
database_name="db-test7",
collection_name=VDB_SPACE
)
DEFAULT_CONFIG = {
"version": "v1.1",
}
MEMORY_INSTANCE = Memory.from_config(DEFAULT_CONFIG)
After local testing, I was able to connect to Tencent Cloud's vector database. According to the official website of mem0, I changed the code to the above, but there were still errors when Docker started,Especially the errors in the red box;
But you can see from the official website that this example is also written in the same way;
https://docs.mem0.ai/components/vectordbs/dbs/langchain
Beta Was this translation helpful? Give feedback.
All reactions