docs assistant
1.0.0
Chat bot assistant for asking questions about documentation databases using LangChain.
This uses the RetrievalQA chain, in combination with the Chroma and OpenAI classes.
Steps:
All scripts require the the following environment variables to be set:
OPENAI_API_KEY="..."
CHROMA_DB_DIR="/path/to/chroma/db"
Text files:
python -m docs_assistant.loaders.textfiles /path/to/chroma/db/ file1.txt file2.txt ...
Confluence:
CONFLUENCE_API_KEY="..."
CONFLUENCE_URL="https://domain.com/wiki"
CONFLUENCE_USERNAME="[email protected]"
python -m docs_assistant.loaders.confluence "type=page and space=SPACE"
Within the terminal:
python -m docs_assistant.bot.cli
As a slack bot:
SLACK_APP_TOKEN="..."
SLACK_BOT_TOKEN="..."
python -m docs_assistant.bot.slack