This is a side project from one of the TAIA study groups. The purpose is to build a chatbot and interact with users to analyse and build a profitable investment for seeking alpha.
Langchain: Doc | Repo Chainlit: Doc | Repo
- English
-
Install Git
-
Change dir to the path you will place the project. Dowland or clone this repo
git clone https://github.com/email81227/llm-study.git
-
Build the project enviroment
conda create -n llm-study python=3.10 poetry
-
Activate the env. (To deactivate, using
conda deactivate
)conda activate llm-study
-
Switch to the project dir
cd {path to the repo cloned}/llm-study
-
Install packages by poetry
poetry install
-
Create
.env
file under the project dir -
Open
.env
and append the following lineOPENAI_API_KEY="{your openai key}" USER_EMAIL="{your email address}" USER_NAME="{your nickname}" LANGFUSE_PUBLIC_KEY="{apply here: https://cloud.langfuse.com/}" LANGFUSE_SECRET_KEY="{apply here: https://cloud.langfuse.com/}"
- 中文說明
-
安裝 Git
-
移動到預計放置專案的目錄下,下載或複製專案
git clone https://github.com/email81227/llm-study.git
-
建立Python專案環境
conda create -n llm-study python=3.10 poetry
-
切換到該環境(用
conda deactivate
反過來切換回base env)conda activate llm-study
-
切換到專案目錄下
cd {path to the repo cloned}
-
安裝專案內套件
poetry install
-
新增名為
.env
的空白檔案 -
打開或新增以下內容至
.env
中OPENAI_API_KEY="{your openai key}" USER_EMAIL="{your email address}" USER_NAME="{your nickname}" LANGFUSE_PUBLIC_KEY="{apply here: https://cloud.langfuse.com/}" LANGFUSE_SECRET_KEY="{apply here: https://cloud.langfuse.com/}"
Run the command on project dir:
chainlit run chat.py -w