momegas commited on
Commit
e32c7f7
β€’
2 Parent(s): ca2f549 55bb1db

Merge pull request #29 from momegas/general_fixes

Browse files
Files changed (5) hide show
  1. .gitattributes +2 -0
  2. .gitignore +34 -3
  3. README.md +12 -1
  4. example.ipynb +2 -2
  5. setup.py +11 -0
.gitattributes ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ # Ignore Jupyter notebooks from Git stats
2
+ *.ipynb linguist-documentation
.gitignore CHANGED
@@ -1,4 +1,4 @@
1
- .venv
2
  __pycache__
3
  .pytest_cache
4
  **.egg-info
@@ -6,6 +6,37 @@ dist
6
  build
7
  **.pickle
8
  **.pkl
9
- .env
10
  volumes
11
- docker-compose.yml
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # General
2
  __pycache__
3
  .pytest_cache
4
  **.egg-info
 
6
  build
7
  **.pickle
8
  **.pkl
 
9
  volumes
10
+ docker-compose.yml
11
+
12
+ # Environments
13
+ .venv
14
+ .env
15
+
16
+ # Distribution / packaging
17
+ .Python
18
+ build/
19
+ develop-eggs/
20
+ dist/
21
+ downloads/
22
+ eggs/
23
+ .eggs/
24
+ lib/
25
+ lib64/
26
+ parts/
27
+ sdist/
28
+ var/
29
+ wheels/
30
+ pip-wheel-metadata/
31
+ share/python-wheels/
32
+ *.egg-info/
33
+ .installed.cfg
34
+ *.egg
35
+ MANIFEST
36
+
37
+ # Installer logs
38
+ pip-log.txt
39
+ pip-delete-this-directory.txt
40
+
41
+ # Jupyter Notebook checkpoints
42
+ .ipynb_checkpoints
README.md CHANGED
@@ -1,8 +1,12 @@
1
  # πŸ€– Megabots
2
 
3
  [![Tests](https://github.com/momegas/qnabot/actions/workflows/python-package.yml/badge.svg)](https://github.com/momegas/qnabot/actions/workflows/python-package.yml)
 
 
 
4
  ![](https://dcbadge.vercel.app/api/server/zkqDWk5S7P?style=flat&n&compact=true)
5
 
 
6
  πŸ€– Megabots provides State-of-the-art, production ready LLM apps made mega-easy, so you don't have to build them from scratch 🀯 Create a bot, now 🫡
7
 
8
  - πŸ‘‰ Join us on Discord: https://discord.gg/zkqDWk5S7P
@@ -40,7 +44,8 @@ import os
40
 
41
  os.environ["OPENAI_API_KEY"] = "my key"
42
 
43
- # Create a bot πŸ‘‰ with one line of code. Automatically loads your data from ./index or index.pkl.
 
44
  qnabot = bot("qna-over-docs")
45
 
46
  # Ask a question
@@ -239,3 +244,9 @@ sequenceDiagram
239
  API -->> User: Return response
240
 
241
  ```
 
 
 
 
 
 
 
1
  # πŸ€– Megabots
2
 
3
  [![Tests](https://github.com/momegas/qnabot/actions/workflows/python-package.yml/badge.svg)](https://github.com/momegas/qnabot/actions/workflows/python-package.yml)
4
+ [![Python Version](https://img.shields.io/badge/python-%203.10%20-blue.svg)](#supported-python-versions)
5
+ [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
6
+ [![License](https://img.shields.io/badge/License-MIT-informational.svg)](https://github.com/momegas/megabots/blob/main/LICENCE)
7
  ![](https://dcbadge.vercel.app/api/server/zkqDWk5S7P?style=flat&n&compact=true)
8
 
9
+
10
  πŸ€– Megabots provides State-of-the-art, production ready LLM apps made mega-easy, so you don't have to build them from scratch 🀯 Create a bot, now 🫡
11
 
12
  - πŸ‘‰ Join us on Discord: https://discord.gg/zkqDWk5S7P
 
44
 
45
  os.environ["OPENAI_API_KEY"] = "my key"
46
 
47
+ # Create a bot πŸ‘‰ with one line of code. Automatically loads your data from ./index or index.pkl.
48
+ # Keep in mind that you need to have one or another.
49
  qnabot = bot("qna-over-docs")
50
 
51
  # Ask a question
 
244
  API -->> User: Return response
245
 
246
  ```
247
+ ## How to contribute?
248
+
249
+ We welcome any suggestions, problem reports, and contributions!
250
+ For any changes you would like to make to this project, we invite you to submit an [issue](https://github.com/momegas/megabots/issues).
251
+
252
+ For more information, see [`CONTRIBUTING`](https://github.com/momegas/megabots/blob/main/CONTRIBUTING.md) instructions.
example.ipynb CHANGED
@@ -19,7 +19,7 @@
19
  "\n",
20
  "The `bot` object is the main object of the library. It is used to create a bot and to interact with it.\n",
21
  "\n",
22
- "The `index` argument specifies the index to use for the bot. It can either be a saved index file (e.g., `index.pkl`) or a directory of documents (e.g., `./index`). In the case of the directory the index will be automatically created. If no index is specified `bot` will look for `index.pkl` or `./index`\n"
23
  ]
24
  },
25
  {
@@ -69,7 +69,7 @@
69
  "source": [
70
  "### Changing the bot's prompt\n",
71
  "\n",
72
- "You can change the bots promnpt to customize it to your needs. In the `qna-over-docs` type of bot you will need to pass 2 variables for the `context` (knwoledge searched from the index) and the `question` (the human question).\n"
73
  ]
74
  },
75
  {
 
19
  "\n",
20
  "The `bot` object is the main object of the library. It is used to create a bot and to interact with it.\n",
21
  "\n",
22
+ "The `index` argument specifies the index to use for the bot. It can either be a saved index file (e.g., `index.pkl`) or a directory of documents (e.g., `./index`). In the case of the directory the index will be automatically created. If no index is specified the `bot` will look for `index.pkl` or `./index`."
23
  ]
24
  },
25
  {
 
69
  "source": [
70
  "### Changing the bot's prompt\n",
71
  "\n",
72
+ "You can change the bot's promnpt to customize it to your needs. In the `qna-over-docs` type of bot you will need to pass 2 variables for the `context` (knwoledge searched from the index) and the `question` (the human question).\n"
73
  ]
74
  },
75
  {
setup.py CHANGED
@@ -13,6 +13,9 @@ setup(
13
  "fastapi",
14
  "faiss-cpu",
15
  "pdfminer.six",
 
 
 
16
  ],
17
  author="Megaklis Vasilakis",
18
  author_email="megaklis.vasilakis@gmail.com",
@@ -20,6 +23,14 @@ setup(
20
  long_description=open("README.md").read(),
21
  long_description_content_type="text/markdown",
22
  url="https://github.com/momegas/megabots",
 
 
 
 
 
 
 
 
23
  license="MIT",
24
  classifiers=[
25
  # Choose appropriate classifiers from
 
13
  "fastapi",
14
  "faiss-cpu",
15
  "pdfminer.six",
16
+ "gradio",
17
+ "python-dotenv",
18
+ "openai",
19
  ],
20
  author="Megaklis Vasilakis",
21
  author_email="megaklis.vasilakis@gmail.com",
 
23
  long_description=open("README.md").read(),
24
  long_description_content_type="text/markdown",
25
  url="https://github.com/momegas/megabots",
26
+ keywords = [
27
+ "bot"
28
+ "qna-bot"
29
+ "information-retrieval",
30
+ "chatbot",
31
+ "question-answering",
32
+ "prompt-engineering"
33
+ ]
34
  license="MIT",
35
  classifiers=[
36
  # Choose appropriate classifiers from