mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-02 00:28:00 +00:00
feature:add markdown embedding
This commit is contained in:
parent
293ba94d22
commit
645530a31d
@ -1,10 +1,11 @@
|
|||||||
from pilot.source_embedding.pdf_embedding import PDFEmbedding
|
from pilot.source_embedding.pdf_embedding import PDFEmbedding
|
||||||
|
|
||||||
path = "xxx.pdf"
|
path = "xxx.pdf"
|
||||||
model_name = "/Users/chenketing/Desktop/project/all-MiniLM-L6-v2"
|
path = "your_path/OceanBase-数据库-V4.1.0-应用开发.pdf"
|
||||||
vector_store_path = "/pilot/source_embedding/"
|
model_name = "your_path/all-MiniLM-L6-v2"
|
||||||
|
vector_store_path = "your_path/"
|
||||||
|
|
||||||
|
|
||||||
pdf_embedding = PDFEmbedding(file_path=path, model_name=model_name, vector_store_config={"vector_store_name": "ob", "vector_store_path": "vector_store_path"})
|
pdf_embedding = PDFEmbedding(file_path=path, model_name=model_name, vector_store_config={"vector_store_name": "ob-pdf", "vector_store_path": vector_store_path})
|
||||||
pdf_embedding.source_embedding()
|
pdf_embedding.source_embedding()
|
||||||
print("success")
|
print("success")
|
Loading…
Reference in New Issue
Block a user