Spaces:
Paused
Paused
File size: 1,385 Bytes
dff1e71 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | ### document_query
read and analyze remote/local documents get text content or answer questions
pass a single url/path or a list for multiple documents in "document"
for web documents use "http://" or "https://"" prefix
for local files "file://" prefix is optional but full path is required
if "queries" is empty tool returns document content
if "queries" is a list of strings tool returns answers
supports various formats HTML PDF Office Text etc
usage:
1 get content
~~~json
{
"thoughts": [
"I need to read..."
],
"headline": "...",
"tool_name": "document_query",
"tool_args": {
"document": "https://.../document"
}
}
~~~
2 query document
~~~json
{
"thoughts": [
"I need to answer..."
],
"headline": "...",
"tool_name": "document_query",
"tool_args": {
"document": "https://.../document",
"queries": [
"What is...",
"Who is..."
]
}
}
~~~
3 query multiple documents
~~~json
{
"thoughts": [
"I need to compare..."
],
"headline": "...",
"tool_name": "document_query",
"tool_args": {
"document": [
"https://.../document-one",
"file:///path/to/document-two"
],
"queries": [
"Compare the main conclusions...",
"What are the key differences..."
]
}
}
~~~
|