Utilities
Functions to support your AI Agents.
POSThttps://api.ailibrary.ai/v1/utilities/websearch
Web Search
Searches the web for search terms
Request body
- Name
search_terms
- Type
- array
- Required
- required
- Description
List of search terms
Request
POST
/v1/utilities/websearch{
"search_terms": ["artificial intelligence", "retireval augmented generation"]
}
Response
[
{
"term": "artificial intelligence",
"prompt_context": "Artificial intelligence - WikipediaArtificial <b>intelligence</b> (AI), in its broadest sense, ...",
"sources": [
{
"title": "Artificial intelligence - Wikipedia",
"description": "Artificial <b>intelligence</b> (AI), in its broadest sense, is <b>intelligence</b> exhibited by machines, particularly computer systems. It is a field of research in computer science that develops and studies methods and software that enable machines to perceive their environment and use learning and <b>intelligence</b> to take actions that maximize their chances of achieving defined goals. [1]",
"url": "https://en.wikipedia.org/wiki/Artificial_intelligence",
"isFamilyFriendly": true,
"language": "en",
"full_text": "Artificial intelligence - WikipediaArtificial <b>intelligence</b> (AI), in its broadest sense, is <b>intelligence</b> exhibited by machines, particularly computer systems. It is a field of research in computer science that develops and studies methods and software that enable machines to perceive their environment and use learning and <b>intelligence</b> to take actions that maximize their chances of achieving defined goals. [1]"
},
//...
]
},
{
"term": "retireval augmented generation",
"prompt_context": "What is Retrieval-Augmented Generation (RAG) - GeeksforGeeks<b>Retrieval</b>-<b>augmented</b>...",
"sources": [
{
"title": "What is Retrieval-Augmented Generation (RAG) - GeeksforGeeks",
"description": "<b>Retrieval</b>-<b>augmented</b> <b>generation</b> (RAG) is an innovative approach in the field of natural language processing (NLP) that combines the strengths of <b>retrieval</b>-based and <b>generation</b>-based models to enhance the quality of generated text. This hybrid model aims to leverage the vast amounts of information available in large-scale databases or knowledge bases, making it particularly effective for tasks that require accurate and contextually relevant information. ...",
"url": "https://www.geeksforgeeks.org/what-is-retrieval-augmented-generation-rag/",
"isFamilyFriendly": true,
"language": "en",
"full_text": "What is Retrieval-Augmented Generation (RAG) - GeeksforGeeks<b>Retrieval</b>-<b>augmented</b> <b>generation</b> (RAG) is an innovative approach in the field of natural language processing (NLP) that combines the strengths of <b>retrieval</b>-based and <b>generation</b>-based models to enhance the quality of generated text. This hybrid model aims to leverage the vast amounts of information available in large-scale databases or knowledge bases, making it particularly effective for tasks that require accurate and contextually relevant information. ..."
},
//...
]
}
]
POSThttps://api.ailibrary.ai/v1/utilities/webparser
Web Parser
Parses a web page for content and returns related links and content
Request body
- Name
urls
- Type
- array
- Required
- required
- Description
List of urls
Request
POST
/v1/utilities/webparser{
"urls": ["https://portlandgeneral.com/about/info/rates-and-regulatory/tariff"]
}
Response
[
{
"url": "https://ai.gov/actions/",
"title": "Administration Actions on AI - AI.gov",
"date": "",
"domain": "ai.gov",
"body": "An official website of the United States government...",
"relatedurls": [
{
"url": "https://ai.gov/wp-content/uploads/2023/12/NAIRR-TF-Interim-Report-2022.pdf",
"title": "NAIRR-TF-Interim-Report-2022.pdf",
"description": "",
"type": "docs"
},
{
"url": "https://ai.gov/immigrate/",
"title": "Bring your AI Skills to the U.S. - AI.gov",
"description": "Learn about immigrant and non-immigrant pathways to work on AI in the U.S.",
"type": "web"
},
///...
]
}
]