Skip to content

langchain v0.3.10 based gpt or agent service with python v3.12 + streamlit v1.41 + openai v1.57 + anthropic v0.40

License

Notifications You must be signed in to change notification settings

toweringcloud/fullstack-gpt-v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fullstack-gpt-v2

langchain v0.3.10 based gpt service with python v3.12 + streamlit v1.41 + openai v1.57

features

challenge-01 (2024.12.09) : Welcome To Langchain

challenge-02 (2024.12.10) : Model I/O

challenge-03 (2024.12.11) : Memory

challenge-04 (2024.12.15) : RAG

challenge-05 (2024.12.17) : Streamlit is 🔥

challenge-06 (2024.12.22) : Quiz GPT Turbo

challenge-07 (2024.12.24) : Site GPT

challenge-08 (2024.12.26) : ChatBot Agent

challenge-09 (2024.12.28) : Research Assistant

challenge-10 (2024.12.31) : Meeting GPT

how to run

setup

  • install python 3.10 ~ 3.12 LTS and add system path on python & pip
$ python --version
Python 3.12.7 (or 3.10.11 or 3.11.9 or 3.12.8)

$ pip --version
pip 24.2 from /usr/lib/python3/dist-packages/pip (python 3.12)

config

  • set runtime environment
$ cat .env
OPENAI_API_KEY="..."
  • load runtime environment
from dotenv import dotenv_values
from langchain_openai import ChatOpenAI

config = dotenv_values(".env")

chat = ChatOpenAI(
    openai_api_key=config['OPENAI_API_KEY'],
    ...
)

launch

  • run jupyter app in virtual environment
$ python -m venv .venv
$ source env/bin/activate
$ pip install -r requirements.txt
$ pip list
$ touch main.ipynb && code .
$ deactivate
  • run jupyter app in poertry environment
$ poetry init
$ poetry shell
$ poetry install
$ poetry show
$ touch main.ipynb && code .
$ exit
  • run streamlit app in root environment
$ streamlit run main.py
  You can now view your Streamlit app in your browser.
  Local URL: http://localhost:8501

About

langchain v0.3.10 based gpt or agent service with python v3.12 + streamlit v1.41 + openai v1.57 + anthropic v0.40

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published