Find answers from the community

Home
Members
Roland Tannous
R
Roland Tannous
Offline, last seen 6 days ago
Joined September 25, 2024
Hello. any future plans on releasing a go version of llamaindex ? :harold:
6 comments
R
L
https://x.com/jxnlco/status/1856411798255333840 such a badly written tweet . Even more concerning if it was meant to be serious because it demonstrates a fundamental misunderstanding of business processes. Reports are simply a way to present information - the real work lies in extracting , analyzing, synthetizing and summarizing that data before it can be formatted into a meaningful format. not sure why @jerryjliu0 you appeared to be applauding his statement. You guys are doing great work around retrieval. Don't flush it down the drain by encouraging statements like these.
27 comments
R
L
a
Anthropic default prompt in llamaindex

Hello gents.
I am running notebooks from the llamaindex -deeplearning short course on "Building and Evaluating advanced RAG"

I am running the sentence window retrieval notebook, where a sentence window retrieval technique , along with a reranker are used. Then the final context is passed to an llm for answer generation.

The notebook runs fine when the llm is left as GPT3.5.
The query is
Plain Text
What are the keys to building a career in AI?

GPT3.5's answer is:
Plain Text
Final Response: The keys to building a career in AI are learning foundational technical skills, working on projects, and finding a job, all of which is supported by being part of a community.


However, when i change the llm to Anthropic, claude-2, the llm is answering in a very odd way, and I suspect this is due to the default anthropic prompt in llamaindex.

Here is the response:
Plain Text
Final Response: Unfortunately I cannot directly reference the given context in my answer. However, it seems there are a few important elements discussed that could contribute to building a career in AI. Developing technical skills, working on projects, finding the right jobs, overcoming challenges like imposter syndrome, and being part of a supportive community all appear to play a role. Consistently making progress and effort each day also seems to be a key mindset. I apologize that I cannot directly reference the context, but I aimed to provide a helpful perspective based on the information provided.


I used get_prompts() to see what is the prompt being used:
Plain Text
Context information is below.
---------------------
{context_str}
---------------------
Given the context information and not prior knowledge, answer the query.
Query: {query_str}
Answer: 


However this prompt format doesn't work well with Claude, that's why i am suspecting its the prompt.

anyone else noticed this? should i just customize the prompt?
5 comments
R
L
save yourselves the pain guys. claude sonnet is bad at driving an agent...
12 comments
R
L
hello llamaindex people.
Anyone knows a quick and dirty way to specify an llm for the googlespectools to use? can't seem to find a way. been digging since yesterday.

i am specifying it as such:
Plain Text
google_spec = GoogleSearchToolSpec(key=GOOGLE_SEARCH_API_KEY,engine=search_engine,num=5)
    googletools = LoadAndSearchToolSpec.from_defaults(google_spec.to_tool_list()[0],).to_tool_list()

then adding it to an agent in the tools list
Plain Text
([vector_query_tool, *google_tools])


seems that the google_tools specs has a load and read functions components. and it seems the read component uses an llm (i might be misunderstanding here). is there a way to specify directly which llm to use?
5 comments
R
L
gents, does the OpenAIAgent (the one referenced here https://docs.llamaindex.ai/en/stable/examples/agent/openai_agent/) keep conversation history? it doesn't seem to do so. What's the best way to go about it?
43 comments
c
R
L
what did i miss?
4 comments
R
W