{"id":21610826,"url":"https://github.com/toweringcloud/fullstack-gpt","last_synced_at":"2025-03-18T16:01:11.509Z","repository":{"id":254879396,"uuid":"847738384","full_name":"toweringcloud/fullstack-gpt","owner":"toweringcloud","description":"langchain v0.0.332 based gpt or agent service with python v3.11 + streamlit v1.27 + openai v1.45","archived":false,"fork":false,"pushed_at":"2024-10-28T02:27:20.000Z","size":42152,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-24T19:47:36.731Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://fullstack-gpt-research.streamlit.app","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/toweringcloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-26T13:02:40.000Z","updated_at":"2024-12-09T14:23:22.000Z","dependencies_parsed_at":"2024-09-12T18:58:49.044Z","dependency_job_id":"32ee3a64-425d-4bfa-9086-9374f3e00d87","html_url":"https://github.com/toweringcloud/fullstack-gpt","commit_stats":null,"previous_names":["toweringcloud/fullstack-gpt"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toweringcloud%2Ffullstack-gpt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toweringcloud%2Ffullstack-gpt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toweringcloud%2Ffullstack-gpt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toweringcloud%2Ffullstack-gpt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toweringcloud","download_url":"https://codeload.github.com/toweringcloud/fullstack-gpt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244257279,"owners_count":20424130,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T21:09:47.855Z","updated_at":"2025-03-18T16:01:11.480Z","avatar_url":"https://github.com/toweringcloud.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fullstack-gpt\n\nlangchain based generative pre-trained transformer agent service\n\n## features\n\n### challenge-01 : ChatPromptTemplate + LCEL\n\n### challenge-02 : FewShotChatMessagePromptTemplate\n\n### challenge-03 : ConversationSummaryBufferMemory + RunnablePassthrough\n\n### challenge-04 : RAG pipeline with a stuff document chain\n\n### challenge-05 : Document GPT with streamlit app + RunnableLambda\n\n-   [demo] https://fullstack-gpt-document.streamlit.app\n\n### challenge-06 : Quiz GPT with custom function calling\n\n-   [demo] https://fullstack-gpt-quiz.streamlit.app\n\n### challenge-07 : Site GPT with map re-rank chain\n\n-   [demo] https://fullstack-gpt-site.streamlit.app\n\n### challenge-08 : Research Agent with wikipedia or duckduckgo\n\n-   [demo] https://fullstack-gpt-agent.streamlit.app\n\n### challenge-09 : Research Assistant with streaming event handler\n\n-   [demo] https://fullstack-gpt-research.streamlit.app\n\n### challenge-10 : Meeting GPT with refined chain\n\n-   [demo] https://fullstack-gpt-meeting.streamlit.app\n\n## how to run\n\n### setup\n\n-   install python 3.11.6 and add system path on python \u0026 pip\n\n```\n$ python --version\nPython 3.11.6\n\n$ pip --version\npip 23.2.1 from D:\\setup\\Python311\\Lib\\site-packages\\pip (python 3.11)\n\n```\n\n-   install required packages\n\n```\n$ pip install -r requirements.txt\n```\n\n### config\n\n-   set runtime environment\n\n```\n$ cat .env\nOPENAI_API_KEY=\"...\"\n```\n\n-   load runtime environment\n\n```\nfrom dotenv import dotenv_values\nfrom langchain.chat_models import ChatOpenAI\n\nconfig = dotenv_values(\".env\")\n\nllm = ChatOpenAI(\n    openai_api_key=config['OPENAI_API_KEY'],\n    ...\n)\n```\n\n### launch\n\n-   run normal app in virtual environment\n\n```\n$ python -m venv ./env\n$ source env/Scripts/activate or source env/bin/activate\n$ vi main.py\n$ python main.py\n$ deactivate\n```\n\n-   run jupyter app in virtual environment\n\n```\n$ source env/Scripts/activate or source env/bin/activate\n$ touch main.ipynb\n! select runtime kernel as venv - python 3.11.6\n! run code \u0026 debug for testing\n$ deactivate\n```\n\n-   run streamlit app in root environment\n\n```\n$ streamlit run challenge-06.py\n  You can now view your Streamlit app in your browser.\n  Local URL: http://localhost:8501\n```\n\n### scrape with headless browser\n\n```\n$ source env/Scripts/activate or source env/bin/activate\n$ playwright install\nDownloading Chromium 119.0.6045.9 (playwright build v1084) from https://playwright.azureedge.net/builds/chromium/1084/chromium-win64.zip\n...\n|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 120.8 Mb\nChromium 119.0.6045.9 (playwright build v1084) downloaded to ...\n\nDownloading FFMPEG playwright build v1009 from https://playwright.azureedge.net/builds/ffmpeg/1009/ffmpeg-win64.zip\n...\n|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 1.4 Mb\nFFMPEG playwright build v1009 downloaded to ...\n\nDownloading Firefox 118.0.1 (playwright build v1425) from https://playwright.azureedge.net/builds/firefox/1425/firefox-win64.zip\n...\n|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 80 Mb\nFirefox 118.0.1 (playwright build v1425) downloaded to ...\n\nDownloading Webkit 17.4 (playwright build v1921) from https://playwright.azureedge.net/builds/webkit/1921/webkit-win64.zip\n...\n|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 44.5 Mb\nWebkit 17.4 (playwright build v1921) downloaded to ...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoweringcloud%2Ffullstack-gpt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoweringcloud%2Ffullstack-gpt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoweringcloud%2Ffullstack-gpt/lists"}