Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -1,13 +1,13 @@
|
|
| 1 |
-
from llama_index.core.tools import FunctionTool
|
| 2 |
|
| 3 |
from llama_index.llms.huggingface_api import HuggingFaceInferenceAPI
|
| 4 |
|
| 5 |
-
|
| 6 |
from llama_index.embeddings.huggingface import HuggingFaceEmbedding
|
| 7 |
from langchain_community.document_loaders import WikipediaLoader
|
|
|
|
| 8 |
from llama_index.core.schema import Document
|
| 9 |
-
from
|
| 10 |
from langchain_core.tools import tool
|
|
|
|
| 11 |
from llama_index.core.agent.workflow import AgentWorkflow
|
| 12 |
|
| 13 |
llm = HuggingFaceInferenceAPI(model_name="Qwen/Qwen2.5-VL-32B-Instruct")
|
|
|
|
|
|
|
| 1 |
|
| 2 |
from llama_index.llms.huggingface_api import HuggingFaceInferenceAPI
|
| 3 |
|
|
|
|
| 4 |
from llama_index.embeddings.huggingface import HuggingFaceEmbedding
|
| 5 |
from langchain_community.document_loaders import WikipediaLoader
|
| 6 |
+
from llama_index.core.schema import Metadata
|
| 7 |
from llama_index.core.schema import Document
|
| 8 |
+
from llama_index.core.tools import FunctionTool
|
| 9 |
from langchain_core.tools import tool
|
| 10 |
+
from langchain_community.tools.tavily_search import TavilySearchResults
|
| 11 |
from llama_index.core.agent.workflow import AgentWorkflow
|
| 12 |
|
| 13 |
llm = HuggingFaceInferenceAPI(model_name="Qwen/Qwen2.5-VL-32B-Instruct")
|