Skip to content

Commit 784dc87

Browse files
committed
Update README
1 parent 81b50e8 commit 784dc87

File tree

2 files changed

+18
-72
lines changed

2 files changed

+18
-72
lines changed

README.md

Lines changed: 9 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -21,50 +21,24 @@
2121

2222
If you like this project, please give it a ⭐`Star` to support the developers~
2323

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
2925

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.
3427

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.
4135

4236
<p align="center">
4337
<img src="static/img/2023-09-06-14-56-20.png" width="80%">
4438
</p>
4539

4640
---
4741

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-
6842
### 🧨Features
6943

7044
- **`gpt4free` Integration**: Everyone can use `docGPT` for **free** without needing an OpenAI API key.

README.zh-TW.md

Lines changed: 9 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -22,51 +22,23 @@
2222

2323
如果您喜歡這個專案,請給予⭐`Star`以支持開發者~
2424

25+
### 📚Introduction
2526

26-
### ✨What's new in version3?
27-
28-
* 引入 `gpt4free` 的調用,**"允許使用者在無需輸入 API 金鑰或付款的情況下使用該應用程序"**
29-
30-
* 若要使用 `gpt4free` 模型,只需選擇 `Provider` (默認是 `g4f.provider.ChatgptAi`)。有關 `gpt4free` 的更多詳細信息,請參閱[源專案](https://github.com/xtekky/gpt4free)
31-
32-
* Version2
33-
* 使用 **`openai` 模型**
34-
* 至少**須具備** `openai_api_key`,您可以從此[鏈接](https://platform.openai.com/)獲取金鑰
35-
* 若具備 `serpapi_key`,AI 的回應可以包括 Google 搜索結果
36-
37-
* Version3
38-
* 保留 Version2 的所有功能
39-
* 新增 **`gpt4free` 模型**,實現**完全免費**使用
40-
* 使用者可以選擇 `gpt4free``openai` 模型:
41-
* `gpt4free`: 透過逆向工程實現免費調用 openai,但不太穩定
42-
* `openai`: 通過 API 金鑰穩定調用 `openai` 模型
27+
* 上傳來自本地的 PDF 連結 (或 PDF 連結),並且向 `docGPT` 詢問有關 PDF 內容。例如: 您可以請 GPT 幫忙總結文章
28+
* 提供兩種模型選擇:
29+
* `gpt4free`
30+
* **完全免費,"允許使用者在無需輸入 API 金鑰或付款的情況下使用該應用程序"**
31+
* 需選擇 `Provider`。有關 `gpt4free` 的更多詳細信息,請參閱[源專案](https://github.com/xtekky/gpt4free)
32+
* `openai`
33+
* **須具備** `openai_api_key`,您可以從此[鏈接](https://platform.openai.com/)獲取金鑰
34+
* 若具備 `serpapi_key`,AI 的回應可以包括 Google 搜索結果
4335

4436
<p align="center">
4537
<img src="static/img/2023-09-06-14-56-20.png" width="80%">
4638
</p>
4739

4840
---
4941

50-
### 📚Introduction
51-
52-
* 專案目的:
53-
* 本項目的目標是使用 LangChain 和 Streamlit 創建一個強大的 "LLM" 模型。該模型能夠實現**超越 ChatGPT 的能力**,包括:
54-
***外部數據連接**,例如 PDF 文檔,使 LLM 能夠理解上傳的文件。
55-
* 與其他工具集成,實現**互聯網連接**功能,例如使用 `Serp API` 進行**現代主題**的查詢,類似於 **Google 搜索**
56-
* 將 LLM 與 **LLM Math** 模型結合,實現準確的數學計算。
57-
58-
* 本專案的設計架構主要有三個元素:
59-
* [`DataConnection`](../model/data_connection.py): 促進 LLM 與外部數據的通信,例如讀取 PDF 文件。還包括將大型 PDF 拆分,以避免 OpenAI 的 4096 個令牌限制。
60-
* [`docGPT`](../docGPT/): 核心元素,使模型理解 PDF 內容。包括嵌入 PDF 文本向量和創建 LangChain 的 retrievalQA 模型。更多詳細信息請參閱[文檔](https://python.langchain.com/docs/modules/chains/popular/vector_db_qa)
61-
* [`agent`](../agent/agent.py): 管理模型使用的工具,根據用戶查詢**自動決定**使用哪個工具。工具包括:
62-
* `SerpAI`: 對於現代話題,該工具實現了 Google 搜索。
63-
* `llm_math_chain`: 數學計算。
64-
* `docGPT`: 用於使用 retrievalQA 回答與 PDF 文檔相關的問題。
65-
66-
* `docGPT` 是基於 **langchain****streamlit** 開發的
67-
68-
---
69-
7042
### 🧨Features
7143

7244
- **`gpt4free` 整合**:任何人都可以免費使用 GPT4,無需輸入 OpenAI API 金鑰。

0 commit comments

Comments
 (0)