Kayusme / chatgpt

A chatbot taking multiple pdfs as input and answering questions based on user prompts
0 stars 0 forks source link

Sweep: Python ChatGPT #3

Closed Kayusme closed 8 months ago

Kayusme commented 8 months ago

develop a AI chatbot system using python. users can upload multiple pdf and ask any questions and the AI system can answer Using GPT

Checklist - [X] Create `src/main.py` ✓ https://github.com/Kayusme/chatgpt/commit/35b7b3653e0d417b1383bb52811b16d9b650d6be [Edit](https://github.com/Kayusme/chatgpt/edit/sweep/python_chatgpt/src/main.py) - [X] Running GitHub Actions for `src/main.py` ✓ [Edit](https://github.com/Kayusme/chatgpt/edit/sweep/python_chatgpt/src/main.py) - [X] Create `src/chatbot.py` ✓ https://github.com/Kayusme/chatgpt/commit/5f6691d270972076e21534fa3f412567f924f729 [Edit](https://github.com/Kayusme/chatgpt/edit/sweep/python_chatgpt/src/chatbot.py) - [X] Running GitHub Actions for `src/chatbot.py` ✓ [Edit](https://github.com/Kayusme/chatgpt/edit/sweep/python_chatgpt/src/chatbot.py) - [X] Create `src/pdf_reader.py` ✓ https://github.com/Kayusme/chatgpt/commit/aee7d2556e97a81274db5db9d92c50d2f69436c6 [Edit](https://github.com/Kayusme/chatgpt/edit/sweep/python_chatgpt/src/pdf_reader.py) - [X] Running GitHub Actions for `src/pdf_reader.py` ✓ [Edit](https://github.com/Kayusme/chatgpt/edit/sweep/python_chatgpt/src/pdf_reader.py) - [X] Create `requirements.txt` ✓ https://github.com/Kayusme/chatgpt/commit/418918b05c7ae3b8a0e511740becd6fd7f413769 [Edit](https://github.com/Kayusme/chatgpt/edit/sweep/python_chatgpt/requirements.txt) - [X] Running GitHub Actions for `requirements.txt` ✓ [Edit](https://github.com/Kayusme/chatgpt/edit/sweep/python_chatgpt/requirements.txt) - [X] Modify `README.md` ✓ https://github.com/Kayusme/chatgpt/commit/d5efde4ec976af296c7a3dc23519b29eae509981 [Edit](https://github.com/Kayusme/chatgpt/edit/sweep/python_chatgpt/README.md) - [X] Running GitHub Actions for `README.md` ✓ [Edit](https://github.com/Kayusme/chatgpt/edit/sweep/python_chatgpt/README.md)
sweep-ai[bot] commented 8 months ago

🚀 Here's the PR! #4

See Sweep's progress at the progress dashboard!
Sweep Basic Tier: I'm using GPT-4. You have 5 GPT-4 tickets left for the month and 3 for the day. (tracking ID: 2c61506366)

For more GPT-4 tickets, visit our payment portal. For a one week free trial, try Sweep Pro (unlimited GPT-4 tickets).
Install Sweep Configs: Pull Request

Actions (click)

Sandbox Execution ✓

Here are the sandbox execution logs prior to making any changes:

Sandbox logs for 4c7a610
Checking README.md for syntax errors... ✅ README.md has no syntax errors! 1/1 ✓
Checking README.md for syntax errors...
✅ README.md has no syntax errors!

Sandbox passed on the latest main, so sandbox checks will be enabled for this issue.


Step 1: 🔎 Searching

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I think are relevant in decreasing order of relevance (click to expand). If some file is missing from here, you can mention the path in the ticket description. https://github.com/Kayusme/chatgpt/blob/4c7a610f83991a72af7ccbe599e6528177a3eaec/README.md#L1-L1

Step 2: ⌨️ Coding

Ran GitHub Actions for 35b7b3653e0d417b1383bb52811b16d9b650d6be:

Ran GitHub Actions for 5f6691d270972076e21534fa3f412567f924f729:

Ran GitHub Actions for aee7d2556e97a81274db5db9d92c50d2f69436c6:

Ran GitHub Actions for 418918b05c7ae3b8a0e511740becd6fd7f413769:

--- 
+++ 
@@ -1,2 +1,18 @@
 # chatgpt
-A chatbot taking multiple pdfs as input and answering questions based on user prompts
+A chatbot taking multiple PDFs as input and answering questions based on user prompts.
+
+## Installation
+To run this application, you must first install the necessary dependencies. This can be done by running the following command:
+
+```
+pip install -r requirements.txt
+```
+
+## Running the Application
+Once the dependencies are installed, you can start the application by running `main.py`. Use the following command to initiate the chatbot:
+
+```
+python src/main.py
+```
+
+To upload a PDF, type `upload path/to/your/file.pdf` and to exit the application, type `quit`.

Ran GitHub Actions for d5efde4ec976af296c7a3dc23519b29eae509981:


Step 3: 🔁 Code Review

I have finished reviewing the code for completeness. I did not find errors for sweep/python_chatgpt.


🎉 Latest improvements to Sweep:


💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request. Join Our Discord