mirror of
https://github.com/hwchase17/langchain
synced 2024-11-08 07:10:35 +00:00
5545de0466
Updates the bedrock rag template. - Removes pinecone and replaces with FAISS as the vector store - Fixes the environment variables, setting defaults - Adds a `main.py` test file quick sanity testing - Updates README.md with correct instructions
1.0 KiB
1.0 KiB
RAG AWS Bedrock
AWS Bedrock is a managed serve that offers a set of foundation models.
Here we will use Anthropic Claude
for text generation and Amazon Titan
for text embedding.
We will use FAISS as our vectorstore.
(See this notebook for additional context on the RAG pipeline.)
Code here uses the boto3
library to connect with the Bedrock service. See this page for setting up and configuring boto3 to work with an AWS account.
FAISS
You need to install the faiss-cpu
package to work with the FAISS vector store.
pip install faiss-cpu
LLM and Embeddings
The code assumes that you are working with the default
AWS profile and us-east-1
region. If not, specify these environment variables to reflect the correct region and AWS profile.
AWS_DEFAULT_REGION
AWS_PROFILE