Find answers from the community

t
theoxd
Offline, last seen last week
Joined September 25, 2024
{"id":"","status":"ERROR","error_code":"_UNKOWN_ERROR","error_message":"UNKNOWN_ERROR: PDF_IS_BROKEN"}

Is this error on my end? (it's llama parse)
2 comments
L
n
Hi, I have a few questions for people building RAG but with multiples indexes (100+). How do you guys load the indexes fast & and add documents to those?
Do you just have an efficient cache system or is there 'better' ways of doing this?
1 comment
L
t
theoxd
·

Positions

Would there be a way, when using Llama parse to have a positionnal information about the parsed document?
1 comment
L
hi, someone knows what the discord of Pierre-Loic is ?
1 comment
t
t
theoxd
·

Batch

is there a way using llama index to do embeddings using batchs requests ? (the openai ones that have 24 hours turnover?)
5 comments
L
t
Hello, i've been working with react agent, and sometimes due to openai being unreliable the message starts with :
Plain Text
 Answer (Starts With): 

This happens quite often, and I was wondering, if y'all knew where the code that reads this, and says it's a thought observation etc is, and if I can edit it?
9 comments
t
L
t
theoxd
·

Agent

Is it possible to setup a groq agent? instead of openai?
6 comments
L
t
Is it only me or, when using a ReAct agent, when it asks questions to tools, it doesn't seem async, it blocks my whole process
17 comments
t
L
Is there an error here or am I just stupid ?
https://docs.llamaindex.ai/en/stable/examples/agent/multi_document_agents-v1.html

They built a custom retriver that creates a sub question tool, but how can the main agent find the tool after ?

I get an error where sometimes it tries finding the tool but it's not in the mapping ig
7 comments
L
t
t
theoxd
·

any ideas?

any ideas?
3 comments
L
Hey I tried following the llama tutorial oto make each agent have a document but sometimes it calls a tool that doesn't exists and crashs, any idea why it calls an unexisting tool and how to prevent it?
Enter a query: Create a Python script that fetches processing orders from the API, counts occurrences of endpoint IDs, and updates endpoint tags through PATCH requests, use the tools to get infos about the routes
4 comments
t
L
Hello, I am trying to do a CustomRetriever, but I would like to exclude documents that have a certain metadata, (what I want to exclude is dynamic based on the user query). I only found a way to do the contrary of what I would like using Metadata filters, but it seems like it only allows me to get only documents that follow the exact rule and not to exclude them, any ideas of how to do it i a clean way? besides looping through the vecor nodes

Thank you for your time
13 comments
t
L
how can I include a reranker in my retriever?
3 comments
k
Is there a way to read the docs of a previous version?
4 comments
L
t
Hello, I was wondering if there was a way to only create the tool metadata, vectorize it and store it somewhere (not in memory) and then only create the agent when it's called?
Plain Text
for route in routes:
    print(f"Processing route {idx}/{len_routes}")

    history = []

    history.append(ChatMessage(
        role='assistant',
        content=("Here is all the details of the route."
                 f"The route is defined in the context of the {route.higher_context} context."
                 f"The route is {route.route} and the method is {route.method}."
                 f"The possible responses are {route.responses}."
                 f"The request body is {route.requestBody}."
                 f"The parameters are {route.parameters}."
                 f"The tags are {route.tags}."
                 f"The additional properties are {route.additional_properties}."),
    ))


    function_llm = OpenAI(model="gpt-3.5-turbo")
    agent = OpenAIAgent.from_tools(
        None,
        llm=function_llm,
        verbose=True,
        system_prompt=(
            PROMPT1
        ),
        chat_history=history,
    )   
    agents[route.title()] = agent

    tool_summary = (
        SUMMARY
    )

    doc_tool = QueryEngineTool(
        query_engine=agents[route.title()],
        metadata=ToolMetadata(
            name=f"tool_{route.title()}",
            description=tool_summary,
        ),
    )

    all_tools.append(doc_tool)


    idx += 1


tool_mapping = SimpleToolNodeMapping.from_objects(all_tools)

if not os.path.exists("index"):
    obj_index = ObjectIndex.from_objects(
        all_tools,
        tool_mapping,
        VectorStoreIndex,
    )

    obj_index.persist("index")
else:
    obj_index = ObjectIndex.from_persist_dir("index", tool_mapping)

top_agent = FnRetrieverOpenAIAgent.from_retriever(
    obj_index.as_retriever(similarity_top_k=3),
    system_prompt=(
        PROMPT
    ),
    verbose=True,
    llm=OpenAI(model="gpt-4"),
)
2 comments
L
t