mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-12 12:37:14 +00:00
fix:memory create collection bug
This commit is contained in:
@@ -311,7 +311,7 @@ class OceanBaseStore(VectorStoreBase):
|
||||
def create_collection(self, collection_name: str, **kwargs) -> Any:
|
||||
"""Create the collection."""
|
||||
embeddings = self.embedding_function.embed_documents([collection_name])
|
||||
raise self._create_table_with_index(embeddings)
|
||||
return self._create_table_with_index(embeddings)
|
||||
|
||||
def load_document(self, chunks: List[Chunk]) -> List[str]:
|
||||
"""Load document in vector database."""
|
||||
|
Reference in New Issue
Block a user