You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: create_fastapi_project/templates/langchain_basic/README.md
+26-1Lines changed: 26 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,10 @@ This is a FastAPI project initialized using [`create-fastapi-project`](https://g
25
25
2. Get your API key from [API Key - SerpApi](https://serpapi.com/manage-api-key).
26
26
3. Set your API key as an environment variable named `SERP_API_KEY`.
27
27
28
+
## Reverse Proxy
29
+
30
+
This project employs [Caddy](https://caddyserver.com/) as a reverse proxy to efficiently route and manage incoming requests.
31
+
28
32
## Getting Started
29
33
30
34
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`.
68
72
- Search pokemon by name or id 
69
73
70
74
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.
0 commit comments