Closed rsgrewal-aws closed 6 months ago
Rupinder, everything looks good except for 2 things I noticed:
from IPython.display import Markdown, display from langchain.embeddings.bedrock import BedrockEmbeddings from langchain.llms.bedrock import Bedrock from llama_index import ServiceContext
ImportError: cannot import name 'version_short' from 'pydantic.version' (/opt/conda/lib/python3.10/site-packages/pydantic/version.cpython-310-x86_64-linux-gnu.so)
looks to be coming from :
ImportError Traceback (most recent call last) Cell In[41], line 5 2 from langchain.embeddings.bedrock import BedrockEmbeddings 3 from langchain.llms.bedrock import Bedrock ----> 5 from llama_index import ServiceContext
IndexError Traceback (most recent call last) Cell In[30], line 22 18 text_embedding_pairs = zip(dataset['item_name_in_en_us'].to_list(), multimodal_embeddings_img) 19 #metadata_dict = dict ( [(key, value) for i, (key, value) in enumerate(zip(dataset['item_name_in_en_us'].to_list(), dataset['img_full_path'].to_list()))] ) ---> 22 db = FAISS.from_embeddings(text_embedding_pairs, embedding_model, metadatas=metadata_dict)
i.e.
Next steps Now that we have a working RAG application with vector search retrieval, we will explore a new type of retrieval. In the next notebook we will see how to use LLM agents to automatically retrieve information from APIs. name/description
fixed the builds
LGTM
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.