Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from langchain_groq import ChatGroq
|
|
6 |
from langchain import hub
|
7 |
from langchain.agents import create_tool_calling_agent, AgentExecutor
|
8 |
|
9 |
-
api_wrapper = WikipediaAPIWrapper(top_k_results=
|
10 |
wiki_tool = WikipediaQueryRun(api_wrapper=api_wrapper)
|
11 |
|
12 |
# Wikipedia Search Tool
|
@@ -34,7 +34,7 @@ def generate(query, api_key=""):
|
|
34 |
|
35 |
with gr.Blocks() as demo:
|
36 |
gr.Markdown("""
|
37 |
-
##
|
38 |
|
39 |
This is general question answering agent was created using Mixtral-8x7B LLM through GROQ, a Wikipedia search tool, and LangChain.
|
40 |
""")
|
|
|
6 |
from langchain import hub
|
7 |
from langchain.agents import create_tool_calling_agent, AgentExecutor
|
8 |
|
9 |
+
api_wrapper = WikipediaAPIWrapper(top_k_results=1)
|
10 |
wiki_tool = WikipediaQueryRun(api_wrapper=api_wrapper)
|
11 |
|
12 |
# Wikipedia Search Tool
|
|
|
34 |
|
35 |
with gr.Blocks() as demo:
|
36 |
gr.Markdown("""
|
37 |
+
## Wikipedia Agent with GROQ, Mixtral-8x7B, and LangChain
|
38 |
|
39 |
This is general question answering agent was created using Mixtral-8x7B LLM through GROQ, a Wikipedia search tool, and LangChain.
|
40 |
""")
|