8000 updated langchain template readme · allient/create-fastapi-project@b43050d · GitHub
[go: up one dir, main page]

Skip to content

Commit b43050d

Browse files
committed
updated langchain template readme
1 parent 7ca8e88 commit b43050d

File tree

1 file changed

+26
-1
lines changed
  • create_fastapi_project/templates/langchain_basic

1 file changed

+26
-1
lines changed

create_fastapi_project/templates/langchain_basic/README.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ This is a FastAPI project initialized using [`create-fastapi-project`](https://g
2525
2. Get your API key from [API Key - SerpApi](https://serpapi.com/manage-api-key).
2626
3. Set your API key as an environment variable named `SERP_API_KEY`.
2727

28+
## Reverse Proxy
29+
30+
This project employs [Caddy](https://caddyserver.com/) as a reverse proxy to efficiently route and manage incoming requests.
31+
2832
## Getting Started
2933

3034
The commands in this documentation can be customized on the **Makefile**. It can be started with and without docker.
@@ -68,7 +72,28 @@ You can start editing the server by modifying `app/main.py`.
6872
- Search pokemon by name or id ![pokemon-tool](https://res.cloudinary.com/dnv0qwkrk/image/upload/v1692746086/Allient/create-fastapi-project/pokemon-tool-demo_ggsc63.gif)
6973

7074
And also includes a agent that uses the tools to answer your questions.
71-
You can access the agent by opening [http://localhost:8000/chat](http://localhost:8000/chat) with your browser.
75+
You can access the agent by opening [http://localhost:8000/chat](http://localhost:8000/chat) with your browser or you can use the frontend server.
76+
77+
## Frontend server
78+
79+
This project includes a frontend server that uses [Streamlit](https://streamlit.io/) to display a chatbot that uses the langchain tools to answer your questions.
80+
81+
- Run the frontend server (Recommended using docker):
82+
83+
```bash
84+
make run-streamlit
85+
```
86+
87+
Now you can access the frontend server by opening [frontend.localhost](http://frontend.localhost) with your browser.
88+
89+
if you want to run the frontend server without docker, you need to install the dependencies in the frontend folder.
90+
91+
```bash
92+
cd frontend
93+
cd app
94+
poetry install
95+
streamlit run streamlit_app.py
96+
```
7297

7398
## Learn More
7499

0 commit comments

Comments
 (0)
0