Skip to content
Snippets Groups Projects
Commit 904f0728 authored by nabil.abdennad's avatar nabil.abdennad
Browse files

Part 1 update

parent 03fa1716
No related branches found
No related tags found
No related merge requests found
import boto3
import os
from tqdm.auto import tqdm
#from tqdm.auto import tqdm
from langchain_community.document_loaders import PyPDFDirectoryLoader
from langchain.text_splitter import RecursiveCharacterTextSplitter
from langchain_community.embeddings import BedrockEmbeddings
......@@ -21,7 +21,7 @@ bedrock_client = boto3.client(service_name="bedrock-runtime")
## Configuration for AWS authentication and OpenSearch client
credentials = boto3.Session(profile_name='master-group-14').get_credentials()
credentials = boto3.Session().get_credentials()
awsauth = AWSV4SignerAuth(credentials, 'us-east-1', 'aoss')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment