Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
chatbot-lab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LSDS
Teaching
Master
Cloud
chatbot-lab
Compare revisions
4f2b75f4170b6ee724692b5abee0dfa802f25d7c to b9ce6537f006f5f0290ed15910578b2f5e6e08fd
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
lsds/teaching/master/cloud/chatbot-lab
Select target project
No results found
b9ce6537f006f5f0290ed15910578b2f5e6e08fd
Select Git revision
Branches
Ansible
main
2 results
Swap
Target
lsds/teaching/master/cloud/chatbot-lab
Select target project
lsds/teaching/master/cloud/chatbot-lab
leo.pellandi/chatbot-lab-groupe-4
2 results
4f2b75f4170b6ee724692b5abee0dfa802f25d7c
Select Git revision
Branches
Ansible
main
2 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
minor change
· a1a00bc9
abir.chebbi
authored
5 months ago
a1a00bc9
readme update
· b9ce6537
abir.chebbi
authored
1 month ago
b9ce6537
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Part2/chatbot.py
+0
-5
0 additions, 5 deletions
Part2/chatbot.py
README.md
+4
-3
4 additions, 3 deletions
README.md
with
4 additions
and
8 deletions
Part2/chatbot.py
View file @
b9ce6537
# 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
...
...
This diff is collapsed.
Click to expand it.
README.md
View file @
b9ce6537
# 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 app
lication
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
This diff is collapsed.
Click to expand it.