Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Yinnii committed Apr 25, 2024
1 parent c790119 commit 46221ba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# LMS-chatbot-service
This service is using llama-index to store files into a Pinecone vector database.
With langchain, an agent is created to retrieve documents from the index and answer the user's questions based on the retrieved documents.
It acts like a tutor of the lecture DBIS, but can be used for other lecture by setting the environment variables.
# ![MoodleBot](./img/bot.png) LMS-chatbot-service
This service contains the main functions of MoodleBot. MoodleBot is using Large Language Models to support students of the course Databases and Informationsystems. For building and deploying reliable GenAI, newest frameworks such as [LLamaIndex](https://www.llamaindex.ai/) and [LangChain](https://www.langchain.com/) are used. [Weaviate](https://weaviate.io/), an open source vector database is used to store lecture relevant materials. A LangChain agent answers the user's questions based on the query-relevant documents and can act like a tutor by asking course relevant questions.

The service is connected to the [Social Bot Framework](https://github.com/rwth-acis/Social-Bot-Framework) and the [tech4comp Moodle](https://moodle.tech4comp.dbis.rwth-aachen.de). You can test it by contacting the user "Ask a Bot".
The service is connected to the [Social Bot Framework](https://github.com/rwth-acis/Social-Bot-Framework) and the [tech4comp Moodle](https://moodle.tech4comp.dbis.rwth-aachen.de). You can test it by enrolling to the course MoodleBot.

## Service Variables
For the service, you can set your individual environment variables.
The following are the default settings:

| Variable | Default | Description |
|----------|---------|-------------|
| OPENAI_API_KEY | OpenAI key from the LLMGroup | A paid OpenAI key is mandatory. |
| PINECONE_API_KEY | Own Pinecone API key | A Pinecone API key is mandatory for the database connection. |
| PINECONE_ENVIRONMENT | us-west4-gcp | The index env variable from Pinecone. |
| OPENAI_API_KEY | sk-*** | A paid OpenAI key is mandatory. |
| WEAVIATE_URL | http://localhost:8080 | URL specifying your weaviate database |
| WEAVIATE_POD | localhost | specifying where your weaviate database is located. Port is by default 8080. |
| WEAVIATE_GRPC | localhost | specifying where your weaviate grpc is located. Port is by default 50051. |
| WCS_USERNAME | username | Weaviate username for authentification |
| WCS_PASSWORD | password | Weaviate password for authentification |
| MONGO_CONNECTION_STRING | mongodb://localhost:27017 | Name of your MongoDB database to store the chat conversations. |
| SELECTED_FILES | ./src/documents_2023/pdfs | The path of the files to be stored in the Pinecone database. |
| PINECONE_INDEX_NAME | dbis-lecture-2023 | Set your own Pinecone Index Name |
| SELECTED_FILES | ./src/vl | The path of the files to be stored in weaviate. |
Binary file added img/bot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 46221ba

Please sign in to comment.