0% found this document useful (0 votes)
4 views3 pages

Instruction Manuals

The document outlines the procedure for setting up a Python environment in Visual Studio Code, including creating a virtual environment, installing necessary packages, and running a chatbot application. It also details steps for cloning a repository, making changes to the project, obtaining an access token, creating a branch in GitHub, and checking the version of PyCaret. Additionally, it provides commands for managing PostgreSQL and accessing the chatbot's functionalities.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views3 pages

Instruction Manuals

The document outlines the procedure for setting up a Python environment in Visual Studio Code, including creating a virtual environment, installing necessary packages, and running a chatbot application. It also details steps for cloning a repository, making changes to the project, obtaining an access token, creating a branch in GitHub, and checking the version of PyCaret. Additionally, it provides commands for managing PostgreSQL and accessing the chatbot's functionalities.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

py env set up procedure in visual studio code:-

1. python -m venv venv


2. source venv/bin/activate
3. install required modules via pip install.
4. run the modules
5. deactivate

to install packages,

1.pip install haystack-ai


pip show haystack-ai

2. pip install pyspark


pyspark --version

3. pip install pydantic


pip show pydantic

4. pip install sqlalchemy


pip show sqlalchemy
pip install sqlalchemy psycopg2-binary
pip show psycopg2-binary

to start and end the smarbl chatbot

0. type ssh smartdev in the command prompt


1. first go to the repo via command prompt using
cd ~/ML/smarbl-chatbot/backend
2. to kill the existing process use
kill -9 $(cat chatbot.pid)
3. to start a new instance use
bash start.sh
4. to view logs use tail -f nohup.out
5. go to the port via
https://dev1.smarbl.com:38095
6. two functions avalible for the chatbot
(i) ask question about finance keeping eye that 3 keywords must be there like B30,
month and year

to access and modify the codes of smarbl chatbot via visual studiocode

1. install ssh extension in vs code


2. type ctrl+shift+p at the keyboard
3. select Remote-SSH:Connect to Host..
4. select smarbldev
5. select open folder type ml and select smarbl-chatbot
6. make changes you want to do and update it to save by pervious codes.

1. to start the postgredsql in dbeaver initate the


docker start local-db

Steps to clone a repo in local desktop;


1. Generate a token by going to that repo
2. add that token to the fish terminal
3. navigate to directory via cd `/smarbl/
4. clone the repo via the command
git clone https://github.com/smarbltech/smartreg-documents.git
5. type user-name and the access token as password to start cloning.

Steps to go to the ai repository:-

1. onen command prompt and type ssh smarbldev


2. direct to ssh smartai@smarbl-ai
3. go to the ai repository via ~cd ai
4.clone the chatbot repository by providing the github username and ssh key
password
5.direct to the repository via cd smarbl-chatbot command
6.create virtual environment
7.pip install -r requirements.txt
8.execute the repository

Steps to make changes in the project and update :-

1.make desired changes in the files and save it


2.add a comment statement and execute commit
3.confirm changes and execute
4.for first time;
git commit -m "change description"
Run:
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
5.direct to the command prompt and execute command
git pull

Steps to get the access token:-


1.type cd
2.execute cat gh.token to get
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

Steps to create a branch in github:-


1.direct to backend folder of original code via cd backend
2.create branch by initiating
git branch dev/himanshu
3.execute git switch dev/himanshu
4.push whatever changes you have made to the code by
git push origin dev/himanshu

Steps to check pycaret version in local desktop

1. create the virtual environment


2. install the package by executing the command pip install pycaret
3. create a requirements.txt file for all sub packages present in the file by
executing command
pip freeze -l > requirements.txt
4. to see file items execute
cat requirements.txt
5. to show the pycaret version type below command
cat requirements.txt | grep pycaret

You might also like