From 7081e43cd29415ff3a193054f2a09a34b4976cfe Mon Sep 17 00:00:00 2001 From: Yasar Abdullah <30947207+proyaz@users.noreply.github.com> Date: Tue, 2 Jan 2024 14:53:47 +0530 Subject: [PATCH 1/2] made changes to the README file so that correct versions are used. --- README.md | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5337d93c8..97b09e39e 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ +--- +runme: + id: 01HK4NXTB4EC9T3SR79EKFFS1W + version: v2.0 +--- + # chatgpt-retrieval Simple script to use ChatGPT on your own files. @@ -6,23 +12,30 @@ Here's the [YouTube Video](https://youtu.be/9AXP7tCI9PI). ## Installation -Install [Langchain](https://github.com/hwchase17/langchain) and other required packages. -``` -pip install langchain openai chromadb tiktoken unstructured +Install [Langchain](https://github.com/hwchase17/langchain) and other required packages. And, use python version 3.9 64bit. + +```sh {"id":"01HK4NXTB4EC9T3SR797GCDYV7"} +pip install langchain openai chromadb==0.3.29 tiktoken unstructured unstructured[pdf] ``` + Modify `constants.py.default` to use your own [OpenAI API key](https://platform.openai.com/account/api-keys), and rename it to `constants.py`. Place your own data into `data/data.txt`. ## Example usage + Test reading `data/data.txt` file. -``` + +```sh {"id":"01HK4NXTB4EC9T3SR79A5R70JM"} > python chatgpt.py "what is my dog's name" Your dog's name is Sunny. + ``` Test reading `data/cat.pdf` file. -``` + +```sh {"id":"01HK4NXTB4EC9T3SR79DCGAS5K"} > python chatgpt.py "what is my cat's name" Your cat's name is Muffy. + ``` From 04fee4ed1a6a1b6c8777166c09ddafac7d38ee4b Mon Sep 17 00:00:00 2001 From: Yasar Abdullah <30947207+proyaz@users.noreply.github.com> Date: Tue, 2 Jan 2024 14:56:00 +0530 Subject: [PATCH 2/2] Update README.md --- README.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/README.md b/README.md index 97b09e39e..65c9e9e76 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,3 @@ ---- -runme: - id: 01HK4NXTB4EC9T3SR79EKFFS1W - version: v2.0 ---- - # chatgpt-retrieval Simple script to use ChatGPT on your own files.