mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-15 22:19:28 +00:00
update requirements
This commit is contained in:
@@ -34,7 +34,7 @@ def knownledge_tovec_st(filename):
|
||||
|
||||
text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0)
|
||||
|
||||
texts = text_splitter(knownledge)
|
||||
texts = text_splitter.split_text(knownledge)
|
||||
docsearch = Chroma.from_texts(texts, embeddings, metadatas=[{"source": str(i)} for i in range(len(texts))])
|
||||
return docsearch
|
||||
|
||||
|
Reference in New Issue
Block a user