Spaces:
No application file
No application file
Create README.md
Browse files
README.md
CHANGED
@@ -1,14 +1,51 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
AI Chatbot Agents with Groq and Tavily
|
2 |
+
This Streamlit application creates an AI chatbot that uses Groq's LLMs and Tavily's search capabilities to provide intelligent responses.
|
3 |
+
Features
|
4 |
+
|
5 |
+
Uses Groq's LLMs (llama-3.3-70b-versatile and mixtral-8x7b-32768)
|
6 |
+
Optional web search capabilities using Tavily
|
7 |
+
Customizable system prompts
|
8 |
+
Interactive Streamlit interface
|
9 |
+
|
10 |
+
Setup Instructions
|
11 |
+
|
12 |
+
Create a new Space on Hugging Face:
|
13 |
+
|
14 |
+
Go to huggingface.co/spaces
|
15 |
+
Click "Create new Space"
|
16 |
+
Choose "Streamlit" as the SDK
|
17 |
+
Set the visibility as per your preference
|
18 |
+
|
19 |
+
|
20 |
+
Add your API keys as secrets:
|
21 |
+
|
22 |
+
In your Space's Settings, go to "Variables and secrets"
|
23 |
+
Add the following secrets:
|
24 |
+
|
25 |
+
GROQ_API_KEY
|
26 |
+
TAVILY_API_KEY
|
27 |
+
|
28 |
+
|
29 |
+
|
30 |
+
|
31 |
+
Upload the following files to your Space:
|
32 |
+
|
33 |
+
app.py
|
34 |
+
requirements.txt
|
35 |
+
README.md
|
36 |
+
|
37 |
+
|
38 |
+
|
39 |
+
The application will automatically deploy once all files are uploaded.
|
40 |
+
Usage
|
41 |
+
|
42 |
+
Enter a system prompt to define the AI agent's role
|
43 |
+
Select a Groq model
|
44 |
+
Choose whether to enable web search
|
45 |
+
Enter your query
|
46 |
+
Click "Ask Agent!" to get a response
|
47 |
+
|
48 |
+
Requirements
|
49 |
+
See requirements.txt for the complete list of dependencies.
|
50 |
+
License
|
51 |
+
MIT License
|