Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • Ansible
  • main
2 results

Target

Select target project
  • lsds/teaching/master/cloud/chatbot-lab
  • leo.pellandi/chatbot-lab-groupe-4
2 results
Select Git revision
  • Ansible
  • main
2 results
Show changes
Commits on Source (2)
# Creator: Abir Chebbi (abir.chebbi@hesge.ch)
import boto3
import streamlit as st
from langchain_community.embeddings import BedrockEmbeddings
from langchain_community.chat_models import BedrockChat
from opensearchpy import OpenSearch, RequestsHttpConnection, AWSV4SignerAuth
......
# chatbot-lab
# chatbot lab
## Set up environment:
1. AWS CLI: Ensure AWS CLI is installed and configured on your laptop(refer to the setup guide provided in Session 1).
2. Ensure python is installed: python 3.8 or higher.
3. Install required python libraries listed in the 'requirements.txt':
`pip3 install -r requirements.txt`
......@@ -35,7 +36,7 @@ This script performs the following actions:
* Creates a vector store with the name collection entered as argument.
* After the vector store is set up, the script retrieves and displays the store's endpoint.
### Step 3: Vectorizing the PDF Files
### Step 3: Vectorizing the PDF Files:
After setting up the S3 bucket and Vector DB, we could process PDF files to generate and store embeddings in the vector database.
......@@ -121,6 +122,6 @@ Where:
- **[KeyPairName]**: The name of the key_pair created earlier.
- **[SecurityGroupID]**: The id of the security group created earlier.
## Step 3: Accessing the app:
## Step 3: Accessing the application
Once the app starts, navigate to this URL `http://[public_ip_adress_of_yourVM]:8501` in your web browser to start interacting with your chatbot
\ No newline at end of file