|
21 | 21 |
|
22 | 22 | If you like this project, please give it a ⭐`Star` to support the developers~
|
23 | 23 |
|
24 |
| -### ✨What's new in version3? |
25 |
| - |
26 |
| -* Introduction of integration with `gpt4free`, **allowing users to use docGPT for free without needing to input API keys or make payments**. |
27 |
| - |
28 |
| -- If you choose to use the `gpt4free` model, you only need to select the `Provider` (default is `g4f.provider.ChatgptAi`). For more details about `gpt4free`, refer to the [source project](https://github.com/xtekky/gpt4free). |
| 24 | +### 📚Introduction |
29 | 25 |
|
30 |
| -- Version 2: |
31 |
| - - Uses the **`openai` model**. |
32 |
| - - Requires an `openai_api_key`. You can obtain this key from the [link](https://platform.openai.com/). |
33 |
| - - If you have a `serpapi_key`, AI responses can include Google search results. |
| 26 | +* Upload a PDF link from your local device (or a PDF link) and query `docGPT` about the content of the PDF. For example, you can ask GPT to summarize an article. |
34 | 27 |
|
35 |
| -- Version 3: |
36 |
| - - Retains all the features of Version 2. |
37 |
| - - Introduces the **`gpt4free` model**, enabling completely free usage. |
38 |
| - - Users can choose between `gpt4free` and `openai` models: |
39 |
| - - `gpt4free`: Allows free access to OpenAI models through reverse engineering, but stability might be compromised. |
40 |
| - - `openai`: Offers stable access by using an API key. |
| 28 | +* Provide two models: |
| 29 | + * `gpt4free` |
| 30 | + * **Completely free, allowing users to use the application without the need for API keys or payments.** |
| 31 | + * Select the `Provider`. For more details about `gpt4free`, please refer to the [source project](https://github.com/xtekky/gpt4free). |
| 32 | + * `openai` |
| 33 | + * **Requires an `openai_api_key`, which you can obtain from [this link](https://platform.openai.com/).** |
| 34 | + * If you have an `serpapi_key`, AI responses can include Google search results. |
41 | 35 |
|
42 | 36 | <p align="center">
|
43 | 37 | <img src="static/img/2023-09-06-14-56-20.png" width="80%">
|
44 | 38 | </p>
|
45 | 39 |
|
46 | 40 | ---
|
47 | 41 |
|
48 |
| -### 📚Introduction |
49 |
| - |
50 |
| -* Project Purpose: |
51 |
| - * The purpose of this project is to create a powerful "LLM" model using LangChain and Streamlit. This model aims to **surpass the capabilities of ChatGPT** by enabling: |
52 |
| - * **Connect with external data**, such as PDF documents, through RetrievalQA techniques for the model to understand uploaded files. |
53 |
| - * Integrate LLM with other tools to achieve **internet connectivity**. exemplified by using **Serp API** for querying modern topics similar to **Google search**. |
54 |
| - * Integration with **LLM Math** model for accurate mathematical computations. |
55 |
| - |
56 |
| -* This project consists of three main components: |
57 |
| - * [`DataConnection`](../model/data_connection.py): Facilitates communication between LLM and external data, like reading PDF files. It also includes splitting large PDFs to avoid OpenAI's 4096 token limitation. |
58 |
| - * [`docGPT`](../docGPT/): The core element that helps the model understand PDF content. It involves embedding PDF text vectors and creating LangChain's retrievalQA model. For more details, refer to the [documentation](https://python.langchain.com/docs/modules/chains/popular/vector_db_qa). |
59 |
| - * [`agent`](../agent/agent.py): Manages tools used by the model and automatically decides which tool to use based on user queries. Tools include: |
60 |
| - * `SerpAI`: Used for modern topics, enabling Google search functionality. |
61 |
| - * `llm_math_chain`: Used for mathematical calculations. |
62 |
| - * `docGPT`: Used for answering queries related to PDF document content, designed using retrievalQA. |
63 |
| - |
64 |
| -* `docGPT` is developed based on **Langchain** and **Streamlit**. |
65 |
| - |
66 |
| ---- |
67 |
| - |
68 | 42 | ### 🧨Features
|
69 | 43 |
|
70 | 44 | - **`gpt4free` Integration**: Everyone can use `docGPT` for **free** without needing an OpenAI API key.
|
|
0 commit comments