You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DATABASE_URL=<POSTGRES_DATABASE_URL starts with postgres://>
3
-
MODEL=hkunlp/instructor-xl
4
-
MODEL_PARAMS={"instruction": "Represent the Wikipedia document for retrieval: "}
5
-
QUERY_PARAMS={"instruction": "Represent the Wikipedia question for retrieving supporting documents: "}
6
-
SYSTEM_PROMPT="You are an assistant to answer questions about an open source software named PostgresML. Your name is PgBot. You are based out of San Francisco, California."
7
-
BASE_PROMPT="Given relevant parts of a document and a question, create a final answer.\
8
-
Include a SQL query in the answer wherever possible. \
9
-
Use the following portion of a long document to see if any of the text is relevant to answer the question.\
10
-
\nReturn any relevant text verbatim.\n{context}\nQuestion: {question}\n \
11
-
If the context is empty then ask for clarification and suggest user to send an email to team@postgresml.org or join PostgresML [Discord](https://discord.gg/DmyJP3qJ7U)."
DATABASE_URL=<POSTGRES_DATABASE_URL starts with postgres://>
37
-
MODEL=hkunlp/instructor-xl
38
-
MODEL_PARAMS={"instruction": "Represent the Wikipedia document for retrieval: "}
39
-
QUERY_PARAMS={"instruction": "Represent the Wikipedia question for retrieving supporting documents: "}
40
-
SYSTEM_PROMPT="You are an assistant to answer questions about an open source software named PostgresML. Your name is PgBot. You are based out of San Francisco, California."
41
-
BASE_PROMPT="Given relevant parts of a document and a question, create a final answer.\
42
-
Include a SQL query in the answer wherever possible. \
43
-
Use the following portion of a long document to see if any of the text is relevant to answer the question.\
44
-
\nReturn any relevant text verbatim.\n{context}\nQuestion: {question}\n \
45
-
If the context is empty then ask for clarification and suggest user to send an email to team@postgresml.org or join PostgresML [Discord](https://discord.gg/DmyJP3qJ7U)."
46
37
```
47
38
48
39
# Usage
49
40
You can get help on the command line interface by running:
Primary programming language of the topic (default: )
68
+
--bot_persona BOT_PERSONA
69
+
Persona of the bot (default: Engineer)
66
70
```
67
71
## Ingest
68
72
In this step, we ingest documents, chunk documents, generate embeddings and index these embeddings for fast query.
@@ -161,14 +165,8 @@ pip install .
161
165
162
166
163
167
164
-
# Options
165
-
You can control the behavior of the chatbot by setting the following environment variables:
166
-
- `SYSTEM_PROMPT`: This is the prompt that is used to initialize the chatbot. You can customize this prompt to change the behavior of the chatbot. For example, you can change the name of the chatbot or the location of the chatbot.
167
-
- `BASE_PROMPT`: This is the prompt that is used to generate responses to user queries. You can customize this prompt to change the behavior of the chatbot.
168
-
- `MODEL`: This is the open source embedding model used to generate embeddings for the documents. You can change this to use a different model.
169
-
170
168
# Roadmap
171
-
- ~~`hyerbot --chat_interface {cli, slack, discord}`that supports Slack, and Discord.~~
169
+
- ~~Use a collection for chat historythat can be retrieved and used to generate responses.~~
172
170
- Support for file formats like rst, html, pdf, docx, etc.
173
171
- Support foropen source modelsin addition to OpenAI for chat completion.
174
-
- Support for multi-turn converstaions using converstaion buffer. Use a collection for chat history that can be retrieved and used to generate responses.
172
+
- Support for multi-turn converstaions using converstaion buffer.
0 commit comments