From b41c7d073503267ebc6aaa244d0009ed052f0884 Mon Sep 17 00:00:00 2001 From: mii9000 Date: Sun, 23 Apr 2023 16:55:15 +0600 Subject: [PATCH 1/3] adds instructions to start the app in vitual env --- .gitignore | 3 +++ README.md | 14 ++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/.gitignore b/.gitignore index b6e4761..ab67a77 100644 --- a/.gitignore +++ b/.gitignore @@ -127,3 +127,6 @@ dmypy.json # Pyre type checker .pyre/ + +#venv +myenv \ No newline at end of file diff --git a/README.md b/README.md index 336c4b5..c742c1b 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,20 @@ Create a ChatGPT like experience over your custom docs using [LangChain](https:/ See [this blog post](https://blog.langchain.dev/tutorial-chatgpt-over-your-data/) for a more detailed explanation. +## Virtual Environment + +`python -m venv myenv` + +`source myenv/bin/activate` + +## Install Dependencies + +`pip install -r requirements.txt` + +## Open API Key + +`export OPENAI_API_KEY="..."` + ## Ingest data Ingestion of data is done over the `state_of_the_union.txt` file. From 9c7257ac95d647fab3b937b4d8c40e4e2700cef9 Mon Sep 17 00:00:00 2001 From: mii9000 Date: Sun, 23 Apr 2023 16:55:38 +0600 Subject: [PATCH 2/3] adds tiktoken to requirements --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index 5a9fe7b..c5f19fc 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,3 +3,4 @@ openai unstructured faiss-cpu gradio +tiktoken From c391c18cf020e669db8ef3d30ad4a9ebb5045a45 Mon Sep 17 00:00:00 2001 From: ibrahim Date: Sun, 23 Apr 2023 16:58:04 +0600 Subject: [PATCH 3/3] adds newline to .gitignore --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ab67a77..bacafd5 100644 --- a/.gitignore +++ b/.gitignore @@ -129,4 +129,4 @@ dmypy.json .pyre/ #venv -myenv \ No newline at end of file +myenv