Find answers from the community

s
F
Y
a
P
Updated last month

I wonder if I am doing something

I wonder if I am doing something incorrect -- but all I did is added bunch of metadata properties
L
a
15 comments
Ohhh you have an outdated version of the code
this is fixed in another version
The new code does

Plain Text
        for i, entry in enumerate(entries):
            if i < query.similarity_top_k:
                similarities.append(get_node_similarity(entry, similarity_key))
                nodes.append(to_node(entry, text_key=self.text_key))
                node_idxs.append(str(i))
            else:
                break
So similarities are first
which version should I use
Hmm that fix didn't end up making it into the changelog. I would just use the latest if you are already on v0.9.8
cool thanks a ton
I was looking at changelog
@Logan M are there any breaking changes in 0.9.12 version for open AI
File ~/opt/anaconda3/envs/LLMTools/lib/python3.9/site-packages/llama_index/llms/openai.py:103, in OpenAI()
95 timeout: float = Field(
96 default=60.0,
97 description="The timeout, in seconds, for API requests.",
98 gte=0,
99 )
100 default_headers: Dict[str, str] = Field(
101 default=None, description="The default headers for API requests."
102 )
--> 103 reuse_client: bool = Field(
104 default=True,
105 description=(
106 "Reuse the OpenAI client between requests. When doing anything with large "
107 "volumes of async API calls, setting this to false can improve stability.",
108 ),
109 )
111 api_key: str = Field(default=None, description="The OpenAI API key.", exclude=True)
112 api_base: str = Field(description="The base URL for OpenAI API.")

TypeError: Argument 'description' has incorrect type (expected str, got tuple)
Yea, v0.9.13 is already out and fixes that I think right? Or did we not put 0.9.13 on pypi yet?
never mind 0.9.13 fixed it
few challanges of being on cutting edge πŸ™‚
Add a reply
Sign up and join the conversation on Discord