Skip to main content

No project description provided

Project description

Falcon-AI2-20

FalconAI

FalconAI is a Python library that simplifies generative AI app creation with access to 10,000+ models, multiple input formats, access to the latest information through the internet and support for text and voice outputs.

Note: This is an alpha release

About

Welcome to FalconAI, the ultimate Python library for creating generative AI applications with ease. FalconAI is designed to minimize development time, maximize performance, and provide unparalleled flexibility. Whether you're building a chatbot, summarizing documents, generating text-based analyses, or integrating voice-based AI outputs, FalconAI empowers you to succeed.

FalconAI handles complex AI interactions with simplicity. By enabling developers to interact with over 10,000 Large Language Models (LLMs) from top providers, supporting multiple input file formats, accessing the latest information through the internet, and delivering results in both text and voice, FalconAI streamlines the development of generative AI solutions to a single line of code.

FalconAI also supports browser automation, allowing real-time interaction with websites for tasks like browsing, data extraction, and dynamic content summarization using LLMs. Additionally, it offers built-in support for MCP (Model Context Protocol), enabling advanced agent-based workflows that can control external applications, perform complex tasks across different environments, and enhance automation with minimal effort.

Installation :

pip install falconai

Linux users, use :
sudo apt update && sudo apt install espeak ffmpeg libespeak1

If you get installation errors , make sure you first upgrade your wheel version using :
pip install --upgrade wheel

Features

Simplified Development

FalconAI reduces development complexity, allowing you to focus on building applications instead of managing APIs, processing files, or integrating multiple providers.

Extensive Model Support

Use over 10,000+ LLMs from top AI providers, including:

  • OpenAI
  • Gemini
  • Claude
  • AWS Bedrock
  • Mistral
  • Hugging Face
  • NVIDIA NeMo
  • xAI
  • Cerebras
  • LM Studio
  • Groq
  • GitHub Models

Multi-format Input

Work seamlessly with a variety of input formats:

  • Document: .docx
  • PDF: .pdf
  • Text: .txt
  • Web Content: .html
  • Markdown: .md
  • Websites: url of the website(s)
  • Jupyter Notebook: .ipynb
  • Image: url/image location
  • CSV: .csv

Flexible Output

FalconAI offers flexibility in how results are returned:

  • Text Output: Standard, formatted text responses for integration with websites, applications, or reports.
  • Voice Output: Convert AI-generated text to speech, providing an interactive, accessible experience for users with speech-enabled devices or applications.

Web Search Integration

FalconAI supports web search functionality even for LLMs that do not natively support it. This feature enhances the capabilities of models by enabling them to fetch and process the latest information from the web, ensuring your AI applications stay up-to-date and relevant.

One-Line Of Code (Core Logic)

With FalconAI, you can easily create powerful generative AI applications using simple one-liner function calls. Whether you're summarizing a document, building a chatbot, or generating personalized content, FalconAI provides a smooth and simple interface. Here’s an example of how you can start generating text from a document:

from falconai import ai
import os 

os.environ["GEMINI_API_KEY"] = "your-api-key"

output = ai.chat(document="example.docx", model="gemini/gemini-2.5-flash-preview-05-20", prompt="Summarize the content of this document.")
print(output)

Browser Automation

FalconAI supports browser-based automation when browser=True is passed.

Highlights:

  • Headless and full browser support via Chromium
  • User interaction simulated through controller
  • Only supported with models from:
    • OpenAI
    • Google
    • Anthropic
    • GitHub
    • X AI
    • DeepSeek
    • Groq

Example Use Case:

  • Extract live content
  • Simulate user input
  • Validate AI-generated actions in real browser context

Implementation Note: Uses asynchronous control loop with a controller-agent-browser pattern to simulate agentic behavior on real websites.

from falconai import ai
import os

os.environ["GROQ_API_KEY"] = "your-api-key"

output = ai.chat(
    prompt="Search the latest news about OpenAI and summarize it.",
    model="groq/llama3-8b-81924",
    browser=True,
)

print(output)

MCP Agent Support

FalconAI supports advanced multi-context agent functionality with MCP (Model Context Protocol) when mcp=True.

Highlights:

  • Launch one or more MCP servers (built-in or custom)
  • Supports a wide range of agent tasks including:
    • Text editing
    • PowerPoint/Excel/Word automation
    • Hacker News browsing
    • Web research
    • Docker & WSL system interaction

Built-in MCP Servers:

  • desktop-commander
  • biomcp
  • word-document-server
  • puppeteer
  • blender
  • hackernews
  • sequential-thinking
  • fetch
  • ppt
  • airbnb
  • app-insight-mcp
  • excel
  • youtube-transcript
  • textEditor
  • memory
  • mcp-docker
  • mcp-wsl
  • mcp-compass
  • ddg-search
  • calculator
  • webresearch

Modes:

  • Single Prompt Mode: Execute a one-time agent task.
  • Chat Mode: Enter continuous interactive conversation with the MCP agent. Type \exit, \quit, or \q to quit.

Custom MCP Server Support:

You can pass:

  • A Python dictionary with a "mcpServers" key
  • A JSON string with the same structure
  • A path to a local JSON file containing server configurations
from falconai import ai
import os

os.environ["TOGETHERAI_API_KEY"] = "your-api-key"

output = ai.chat(
    prompt="Create a PowerPoint presentation about climate change and save it in my cwd. Name it climate_change_ai.pptx",
    model="together_ai/deepseek-ai/DeepSeek-V3",
    MCP=True,
    MCP_builtin_server="ppt",
)

print(output)

Suggestions and feedback

For any suggestion and feedback email me. Full fledged documentation is being prepared. Stay tuned!

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

falconai-0.0.1.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

falconai-0.0.1-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file falconai-0.0.1.tar.gz.

File metadata

  • Download URL: falconai-0.0.1.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for falconai-0.0.1.tar.gz
Algorithm Hash digest
SHA256 74c28e501a567d48265c6e1205098419c1723ee34be79d4b848dfe0752ef3b31
MD5 a546544ee94707d7844c81edfb3e867f
BLAKE2b-256 d62b5aaa66179eb124544e71a8b746fad356cfd728c28ba33a35ca4281758310

See more details on using hashes here.

File details

Details for the file falconai-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: falconai-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for falconai-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4a4c05fe625cec138bf5d9660d7f404af71587b3772c64acd0ab6ca8423a7794
MD5 62364f0d8df73ce7cf1d1b108df14df5
BLAKE2b-256 f58e83a9c8db7fdfd21d58500f16ac1f558d696efcd150cb25e06ffeb620ebb0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page