|
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") |
Replies: 4 comments 4 replies
|
@seoeaa don't provide |
|
4 hours uploaded documents, mbedding and it turned out that it doesn't work Token Usage: 4500 |
|
Maybe each document needs its own table, and the script takes a very long time to start |
|
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. |
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.