Chatbot that resolves the customer problems
- Install AWS SAM CLI (tutorial)
- Run Backend via
docker run --env-file .env.prod resolution-api:latest
-
Create environment file(s) Each environment has its own configuration file.
.env.local
for local,.env.prod
for Production. Create each file in the root of the repo with all the necessary variables (look at settings.py). -
Install dependencies
pip install -r requirements.txt
-
Initialize the Vector Database with default data
If you want to add your own data, provide the website URL via KNOWLEDGE_URL, like this:
KNOWLEDGE_URLS=https://gosamurai.ai/,https://gosamurai.ai/payments python server/run.py vdb samurai --crawl_depth=1
The first parameter is the type of the operation, the second is the name of the organization.
Also, you can provide the crawling depth via
--crawl_depth=N
, where N denotes the number of nested levels of pages to crawl. By default, it's disabled. -
Chat with the REsolution bot
python server/run.py chat samurai
-
Chat with the Librarian bot
python server/run.py librarian samurai
-
Save data to VDB from URLs
a. Add the files to the
server/upload
directoryb. Run the command
KNOWLEDGE_URLS=https://link1.com,http://link2.com python server/run.py vdb <org_name> --crawl_depth <N>
where
KNOWLEDGE_URLS
is the comma separated list of documentation links to scan,<org_name>
is the name of the organization and<N>
is the integer denoting the depth of links to follow. The command will add the data from the files to the VDB under the given org. -
Save data to VDB from the file
a. Add the files to the
server/upload
directoryb. Run the command
python server/run.py vdb <org_name> --store_files
where
<org_name>
is the name of the organization. The command will add the data from the files to the VDB under the given org.
Planning.
We want to provide test environments to prospect clients. Simple chat window with the chat already configured for their company needs.
- ✅ Org support
- ✅ Chat is attached to current org It's easier to make accounts bound to the Org. Otherwise, we'll probably need to bind orgs and the databases to the URLs, which is complex and complicated. We should have boilerplate code for authentication available.
- ✅ Save chat history in DB