Skip to content

TurtleGods/LangChain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

使用步驟

  1. 在根目錄建立一個.env file,裡面寫入
    OPENAI_API_KEY="你自己的OPENAI_API_KEY"
    JIRA_TOKEN="你自己的JIRA_TOKEN"
    JIRA_URL=https://mayohumancapital.atlassian.net
    JIRA_EMAIL="你自己的JIRA MAYO EMAIL"
    POSTGRES_URL=postgresql://postgres:postgres@localhost:5432/langchain_db
  2. 安裝mkcert,使用Mkcert建立一個本機的SSL
  3. 根目錄下面放置一個SSL 的folder,放入你的localhost.pem跟localhost-key.pem
  4. 安裝docker desktop

執行

根目錄的terminal之中,下指令docker compose up
如果不想要它佔據你的termial 的話,下docker compose up -d
關閉的話,則下指令docker compose down
注意 如果compose down的話,Chromadb要重新建立
但是postgreSQL是用Volume建立,不用重新拉資料

SQL

建議使用DBeaver
連線localhost:5432
database:langchain_db
Username:postgres
password:postgres

API

Swagger: https://localhost:8000/docs

拿取Jira,先建立資料庫跟Chroma: [put] https://localhost:8000/jira/

問問題: [post] https://localhost:8000/openAI/ask body:{"question":"{你的問題}"}

About

Learning Use LangChain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published