SDKs
Mendable Python SDK
This is a Python SDK for Mendable.ai, which provides a Python interface to interact with Mendable.ai's API.
Installation
To install this package, use pip:
pip install mendable-py
Prerequisites
To use this package, you'll need to obtain an API key from Mendable.ai and make it available as an environment variable.
In your environment (add to .env file):
MENDABLE_API_KEY=your_api_key
Usage
You can use this package to add sources to Mendable and ask questions to it:
from mendable import ChatApp
my_docs_bot = ChatApp()
my_docs_bot.add("sitemap", "https://docs.mendable.ai/sitemap.xml")
answer = my_docs_bot.query("How to install Mendable?")
print(answer)
Supported Features
- Ingesting data sources (.add)
- Asking questions (.query)
Supported ingestion formats and type
- Website Crawler URL -> "website-crawler"
- Docusaurus site URL -> "docusaurus"
- GitHub Repo URL -> "github"
- YouTube Video URL -> "youtube"
- Single Website URL -> "url"
- Sitemap URL -> "sitemap"
- OpenAPI YAML URL -> "openapi"
Please make sure to replace your_api_key with your actual API key and modify any part of this README according to your needs before adding it to your package.