Find answers from the community

Home
Members
rounmicless
r
rounmicless
Offline, last seen 3 months ago
Joined September 25, 2024
Hello, I was wondering if there is a ways to make a call using a vector store asynchronous, like I want to do basic add/delete/fetch in async style
1 comment
L
Hello, I stayed a long time to llama-index 9.X.X and when I upgraded to 10.X.X, I have this error :

....
ValidationError: 1 validation error for NodeWithScore node Can't instantiate abstract class BaseNode with abstract methods get_content, get_metadata_str, get_type, hash, set_content (type=type_error

with this code :
...
serviceContext = ServiceContext.from_defaults(text_splitter=splitter,embed_model=embedModel)
vector_store = PineconeVectorStore(pc.Index(data.index),namespace=data.name)
index = VectorStoreIndex.from_vector_store(vector_store=vector_store,service_context=serviceContext)

retriever = index.as_retriever(similarity_top_k=int(data.nbrTop),filters=filters)
retriever.retrieve("test") #HERE
print(data)
3 comments
L
W
b
Hello, I am trying to add nodes that I modified myself to a VectorStoreIndex connected to a pinecone server.
I have no idea which function should I use, I tried some and always get an error, can you help me ?
1 comment
v
Hello, I tried to use JSONNodeparser and got this error :
AttributeError
'tuple' object has no attribute 'id'
File "/home/mec/dekstop/llamaIndex/script.py", line 511, in <module>
nodesDesc = parser.get_nodes_from_documents(description)
AttributeError: 'tuple' object has no attribute 'id'

With this code :
parser = JSONNodeParser()
description = Document(text=str(descriptionJson))
nodesDesc = parser.get_nodes_from_documents(description)


Where descriptionJson is a dict
Any idea ?
3 comments
r
v
Hello I am pretty sure I was using "get_nodes_by_metadata" about three weeks ago and now I am unable to use it in order to get all the nodes from an index based on a metadata filter (without query)
1 comment
L