mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-03 10:05:13 +00:00
ci: make ci happy lint the code, delete unused imports
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
from pilot.source_embedding.csv_embedding import CSVEmbedding
|
||||
|
||||
# path = "/Users/chenketing/Downloads/share_ireserve双写数据异常2.xlsx"
|
||||
@@ -8,6 +6,13 @@ model_name = "your_path/all-MiniLM-L6-v2"
|
||||
vector_store_path = "your_path/"
|
||||
|
||||
|
||||
pdf_embedding = CSVEmbedding(file_path=path, model_name=model_name, vector_store_config={"vector_store_name": "url", "vector_store_path": "vector_store_path"})
|
||||
pdf_embedding = CSVEmbedding(
|
||||
file_path=path,
|
||||
model_name=model_name,
|
||||
vector_store_config={
|
||||
"vector_store_name": "url",
|
||||
"vector_store_path": "vector_store_path",
|
||||
},
|
||||
)
|
||||
pdf_embedding.source_embedding()
|
||||
print("success")
|
||||
print("success")
|
||||
|
@@ -6,6 +6,13 @@ 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-pdf", "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()
|
||||
print("success")
|
||||
print("success")
|
||||
|
@@ -5,6 +5,13 @@ model_name = "your_path/all-MiniLM-L6-v2"
|
||||
vector_store_path = "your_path"
|
||||
|
||||
|
||||
pdf_embedding = URLEmbedding(file_path=path, model_name=model_name, vector_store_config={"vector_store_name": "url", "vector_store_path": "vector_store_path"})
|
||||
pdf_embedding = URLEmbedding(
|
||||
file_path=path,
|
||||
model_name=model_name,
|
||||
vector_store_config={
|
||||
"vector_store_name": "url",
|
||||
"vector_store_path": "vector_store_path",
|
||||
},
|
||||
)
|
||||
pdf_embedding.source_embedding()
|
||||
print("success")
|
||||
print("success")
|
||||
|
Reference in New Issue
Block a user