mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-05 02:20:08 +00:00
Merge branch 'dev' of github.com:csunny/DB-GPT into dev
This commit is contained in:
commit
d9f5130db4
@ -34,7 +34,7 @@ def knownledge_tovec_st(filename):
|
|||||||
|
|
||||||
text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0)
|
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))])
|
docsearch = Chroma.from_texts(texts, embeddings, metadatas=[{"source": str(i)} for i in range(len(texts))])
|
||||||
return docsearch
|
return docsearch
|
||||||
|
|
||||||
|
@ -51,3 +51,5 @@ gradio==3.24.1
|
|||||||
gradio-client==0.0.8
|
gradio-client==0.0.8
|
||||||
wandb
|
wandb
|
||||||
fschat=0.1.10
|
fschat=0.1.10
|
||||||
|
llama-index=0.5.27
|
||||||
|
pymysql
|
Loading…
Reference in New Issue
Block a user