-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: demo for pinecone support broken #13347
Comments
The error you're encountering with the To resolve this issue, ensure that when you're creating a Here's a brief example of how you might define such a subclass and use it to instantiate a from llama_index.core.base import BaseNode
class MyConcreteNode(BaseNode):
def get_content(self):
# Implement method
pass
def get_metadata_str(self):
# Implement method
pass
def get_type(self):
# Implement method
pass
def hash(self):
# Implement method
pass
def set_content(self, content):
# Implement method
pass
# Assuming `NodeWithScore` expects an instance of `BaseNode` and a score
node = MyConcreteNode()
score = 0.5 # Example score
node_with_score = NodeWithScore(node=node, score=score) Make sure that any class you use as a If you're following an example or documentation, double-check that you're using the correct class types as required by the framework or library you're working with. This approach ensures that the objects you create are compatible with the operations you intend to perform on them.
|
@jzhao62 not an issue with llama-index, there are no abstract methods that aren't implemented. If that was the cause none of our unit tests would pass. More likely, it's an env issue. Try with a completely fresh venv, or in Google colab. Locally, I would do this in a new terminal
|
@logan-markewich i switched back to 0.9.34 and it works, i might be using some packages from the .legacy |
@jzhao62 yea, mixing legacy with non-legacy imports will also cause this. Need to use all legacy imports or none |
Bug Description
follow the example code for pinecone support
Cause:
Remedy:
Version
0.10.34
Steps to Reproduce
Relevant Logs/Tracbacks
The text was updated successfully, but these errors were encountered: