-
how to find out if a file is uploaded to the database so that Generating embeddings does not run constantly import os from pydantic import BaseModel, Field logging.basicConfig(level=logging.DEBUG) os.environ["OPENROUTER_API_KEY"] = "sk-or-v1-0c86a53ee96" relative_folder_path = "examples/data" documents = read_files_as_documents(input_dir=relative_folder_path , recursive=True) service_context_params = { llm_params = { query_engine = AutoQueryEngine.from_parameters( query = "..................." print(response.response) def greet(query): demo = gr.Interface(fn=greet, inputs="text", outputs="text") |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
@seoeaa don't provide |
Beta Was this translation helpful? Give feedback.
-
4 hours uploaded documents, mbedding and it turned out that it doesn't work Token Usage: 4500 |
Beta Was this translation helpful? Give feedback.
-
Maybe each document needs its own table, and the script takes a very long time to start |
Beta Was this translation helpful? Give feedback.
-
It is expected to take that long for 4500 pages of content. You can create separate tables for each file to split the embedding creation step into 4. We will improve logging to reflect better to user what autollm is doing at each processing step. |
Beta Was this translation helpful? Give feedback.
It is expected to take that long for 4500 pages of content. You can create separate tables for each file to split the embedding creation step into 4.
We will improve logging to reflect better to user what autollm is doing at each processing step.