In my 7 years of watching RUclips code projects on Python, no one has explained Python code the way you have. Thank you for these tutorials; you are the best.
Thank you very much, Can you teach how to apply LightRag or any novel knowledge graph RAG for LLM to query and generate new information based on LLM's inference along the relationships in the graph...Thank you a lot!
While adding new documents, will the vectors already there for a document will be overwritten?, because when i initially run the app i had 1098 record count, but when i re-run with same document it become 2196 record count. So even if we add new documents whether it create new queries for same document?
38:38 at this part im getting error It's saying import error i installed all the import things and finally it showed install sentence-transformer i already did then also not working 😢
Creating an index in Pinecone using Python can occasionally result in errors due to misconfigurations or connectivity issues. Here's a checklist and troubleshooting guide to help resolve the issue: 1. Verify Pinecone Installation Ensure the Pinecone Python client is installed and updated: bash Copy code pip install pinecone-client or, for the newer version: bash Copy code pip install pinecone-client[grpc] 2. Check Your API Key Ensure you have the correct API key for your Pinecone account: Log in to the Pinecone Dashboard. Navigate to the API Keys section. Use the following code to initialize Pinecone: python Copy code import pinecone pinecone.init(api_key="your-api-key", environment="your-environment") Replace "your-api-key" with your Pinecone API key. Replace "your-environment" with the environment (e.g., "us-west1-gcp"). 3. Create the Index Here’s the Python code to create an index: python Copy code # Initialize Pinecone pinecone.init(api_key="your-api-key", environment="your-environment") # Define the index name and dimensions index_name = "example-index" dimension = 128 # Example dimensionality of your embeddings # Create the index if index_name not in pinecone.list_indexes(): pinecone.create_index(name=index_name, dimension=dimension) # Connect to the index index = pinecone.Index(index_name) print(f"Connected to index: {index_name}") 4. Common Errors and Fixes Error: "Invalid API Key or Environment" Cause: The API key or environment is incorrect. Fix: Double-check the API key and environment in the Pinecone dashboard. Error: "Index Already Exists" Cause: Attempting to create an index with a name that already exists. Fix: List existing indexes to verify: python Copy code print(pinecone.list_indexes()) Then use a different name or delete the existing index: python Copy code pinecone.delete_index("example-index") Error: "Invalid Dimension" Cause: The dimension specified does not match the embeddings. Fix: Verify the dimensionality of your embeddings and update the dimension parameter. Error: "Connection Timeout" Cause: Network issues or server-side delays. Fix: Retry after a few minutes or check your network settings. Error: "Rate Limit Exceeded" Cause: Too many requests sent to the Pinecone API. Fix: Pause requests for a short period or check your Pinecone plan for rate limits. Error: "Index Configuration Error" Cause: Invalid or incomplete index configuration. Fix: Ensure all required parameters are set correctly when creating the index (e.g., dimension, metric). 5. Debugging Enable detailed logging to identify issues: python Copy code import logging logging.basicConfig(level=logging.DEBUG) pinecone.init(api_key="your-api-key", environment="your-environment") 6. Check Pinecone Status Use the Pinecone API to verify system health: python Copy code status = pinecone.describe_index("example-index") print(status)
@@BrainyAdventures007 True! had to pay around 6 dollars for it to work. Only if he had mentioned this in the video, a lot of my time would have been saved.
sir I am facing issue regarding openai api key it shows that my current quota has been exceeded even though I have created a new account for it kindly help me asap
Hey get your basic clear first before providing knowledge to others. The __init__ method which you refer to as constructor is different than __init__.py which you have created.
In my 7 years of watching RUclips code projects on Python, no one has explained Python code the way you have. Thank you for these tutorials; you are the best.
@@TyokahaIsrael Welcome
explaining wrong things to don't follow these wrong things
so is it good or bad?
this is the most underrated channell i future years this would surely be a big channel
Thank you very much, Can you teach how to apply LightRag or any novel knowledge graph RAG for LLM to query and generate new information based on LLM's inference along the relationships in the graph...Thank you a lot!
While adding new documents, will the vectors already there for a document will be overwritten?, because when i initially run the app i had 1098 record count, but when i re-run with same document it become 2196 record count. So even if we add new documents whether it create new queries for same document?
38:38 at this part im getting error
It's saying import error i installed all the import things and finally it showed install sentence-transformer i already did then also not working 😢
change the sentence transformer version to 3.3.1 then restart the kernal
Nice content bro.
during the embedding part more errors are coming as of all are attribute error what to do sir??
IN THIS PROJECT IS THE PINECONDE DB FREE?
yes
@@agaming4187 thanks bro👍
Thanks for thiss
Defaulting to user installation because normal site-packages is not writeable,, what to do?
you should provide the source code and the materials even if you have provided but not easy to get it then whats the purpose
Can I use Groq LLMs instead of OpenAi ? The price is lower seems
yes for sure
Sir I am facing issue with creating an index for pinecone python code
Creating an index in Pinecone using Python can occasionally result in errors due to misconfigurations or connectivity issues. Here's a checklist and troubleshooting guide to help resolve the issue:
1. Verify Pinecone Installation
Ensure the Pinecone Python client is installed and updated:
bash
Copy code
pip install pinecone-client
or, for the newer version:
bash
Copy code
pip install pinecone-client[grpc]
2. Check Your API Key
Ensure you have the correct API key for your Pinecone account:
Log in to the Pinecone Dashboard.
Navigate to the API Keys section.
Use the following code to initialize Pinecone:
python
Copy code
import pinecone
pinecone.init(api_key="your-api-key", environment="your-environment")
Replace "your-api-key" with your Pinecone API key.
Replace "your-environment" with the environment (e.g., "us-west1-gcp").
3. Create the Index
Here’s the Python code to create an index:
python
Copy code
# Initialize Pinecone
pinecone.init(api_key="your-api-key", environment="your-environment")
# Define the index name and dimensions
index_name = "example-index"
dimension = 128 # Example dimensionality of your embeddings
# Create the index
if index_name not in pinecone.list_indexes():
pinecone.create_index(name=index_name, dimension=dimension)
# Connect to the index
index = pinecone.Index(index_name)
print(f"Connected to index: {index_name}")
4. Common Errors and Fixes
Error: "Invalid API Key or Environment"
Cause: The API key or environment is incorrect.
Fix: Double-check the API key and environment in the Pinecone dashboard.
Error: "Index Already Exists"
Cause: Attempting to create an index with a name that already exists.
Fix: List existing indexes to verify:
python
Copy code
print(pinecone.list_indexes())
Then use a different name or delete the existing index:
python
Copy code
pinecone.delete_index("example-index")
Error: "Invalid Dimension"
Cause: The dimension specified does not match the embeddings.
Fix: Verify the dimensionality of your embeddings and update the dimension parameter.
Error: "Connection Timeout"
Cause: Network issues or server-side delays.
Fix: Retry after a few minutes or check your network settings.
Error: "Rate Limit Exceeded"
Cause: Too many requests sent to the Pinecone API.
Fix: Pause requests for a short period or check your Pinecone plan for rate limits.
Error: "Index Configuration Error"
Cause: Invalid or incomplete index configuration.
Fix: Ensure all required parameters are set correctly when creating the index (e.g., dimension, metric).
5. Debugging
Enable detailed logging to identify issues:
python
Copy code
import logging
logging.basicConfig(level=logging.DEBUG)
pinecone.init(api_key="your-api-key", environment="your-environment")
6. Check Pinecone Status
Use the Pinecone API to verify system health:
python
Copy code
status = pinecone.describe_index("example-index")
print(status)
@ Thank you very much sir I request you to guide me for this project where ever I struck can I ask you 🙏🙏🙏
I am facing error AttributeError: 'function' object has no attribute 'embed_query' when trying to import the hugging face model
How can i deploy this application in vercel or netlify or anywhere it is free.
Mila kuch?
Using paid openai but not declared that this is paid or not, this is very sad for the student
@Euron I am facing RateLimit Error for OpenAI, kindly please help.
you need to use credit card in order to use OpenAI, he's providing false information. Nothing is free at all.
@@BrainyAdventures007 True! had to pay around 6 dollars for it to work. Only if he had mentioned this in the video, a lot of my time would have been saved.
How much does this project costs totally.
how can i get the code?
❤️Thank you
are you able to create it fully?
Where is the github link?
i think they didn't created any which is not right
Can this whole project be built free of cost?
You can use Groq Api as its free
What will be the major changes in code if we use Groq Api
@@Euron-official please send the code for groq API one i tried but getting too many errors
Bro please git repo link
But we can access open source model through groq API bro. What your doing man use llama3-70 b parameter model next time
sir I am facing issue regarding openai api key it shows that my current quota has been exceeded even though I have created a new account for it kindly help me asap
Yeah same error for me, eventhough I have a $5 balance. How did you resolve this
@@immanuels9680 I bought the plan went to pwershell tried to assign my new api key and it worked idk how but it took me 1-2 days
Did you manage to solve this issue?
Please give code for groq api
api you can generate for free from groq website itself
Then it will do the sentiment analysis as well ? @@Euron-official
And also is llama model is better or groq API ?
It seems like Creating Medical Chatbot using RAG technology
its fantastic explanation about all the technologies you used in this project. Please tell us about deployment of this project on cloud AWS.
Did anyone made this watching the video?
Hey get your basic clear first before providing knowledge to others. The __init__ method which you refer to as constructor is different than __init__.py which you have created.