{"id":29417000,"url":"https://github.com/vianneymi/amplifai","last_synced_at":"2026-02-27T19:09:44.191Z","repository":{"id":289745893,"uuid":"874209986","full_name":"VianneyMI/amplifai","owner":"VianneyMI","description":"Amplifai is a package that allows you to transform your raw unstructured text into structured data in a few lines of codes.","archived":false,"fork":false,"pushed_at":"2025-04-24T20:45:02.000Z","size":103,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-29T21:15:27.365Z","etag":null,"topics":["data","data-mining","extraction","langchain","llm","pydantic"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/amplifai/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VianneyMI.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-10-17T12:42:30.000Z","updated_at":"2025-04-24T20:52:55.000Z","dependencies_parsed_at":"2025-04-24T21:06:59.741Z","dependency_job_id":"1e976edb-22cb-4dfe-9b13-9031ac956abf","html_url":"https://github.com/VianneyMI/amplifai","commit_stats":null,"previous_names":["vianneymi/amplifai"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/VianneyMI/amplifai","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VianneyMI%2Famplifai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VianneyMI%2Famplifai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VianneyMI%2Famplifai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VianneyMI%2Famplifai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VianneyMI","download_url":"https://codeload.github.com/VianneyMI/amplifai/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VianneyMI%2Famplifai/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264890087,"owners_count":23678833,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data","data-mining","extraction","langchain","llm","pydantic"],"created_at":"2025-07-11T20:08:59.822Z","updated_at":"2026-02-27T19:09:39.171Z","avatar_url":"https://github.com/VianneyMI.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AMPLIFAI\n\n## **Overview**\n\nThis package allows to extract information from unstructured data and turns this extracted information into structured data.\n\n## **Features**\n\n* Creates LLM powered extraction and structuration logic\n* Define your data structure using Pydantic models\n* Use any supported LLM provider\n* Extract structured data from unstructured text with a single method call\n* Type-safe results with Pydantic validation\n\n## **Requirements**\n\nRequires python \u003e 3.10 and relies on langchain and pydantic\nSee the requirements file for more details\n\n## **Installation**\n\nYou can install the package via pip by running the following command:\n\n```bash\npip install amplifai\n```\n\nAlternatively, you can use any of the numerous python package managers such as poetry and uv.\n\n## **Usage**\n\nHere's a simple example of how to use AMPLIFAI to extract structured information from text:\n\n```python\nfrom pydantic import BaseModel\nfrom langchain_openai import ChatOpenAI\nfrom amplifai import Amplifier\n\n# Define your data model\nclass Person(BaseModel):\n    name: str\n    age: int\n    phone_number: str | None = None\n    email_adress: str | None = None\n\n# Initialize the LLM and Amplifier\nllm = ChatOpenAI(api_key=\"your-api-key\", model=\"gpt-4\")\namplifier = Amplifier[ChatOpenAI, Person](llm=llm)\n\n# Extract structured data from text\ntext = \"John Doe is 25 years old. He lives in Paris and can be reached at +33 6 12 34 56 78 or at firstname.name@gmail.com\"\nperson = amplifier.denoise(text=text)\n\n# Access the structured data\nprint(f\"Name: {person.name}\")\nprint(f\"Age: {person.age}\")\nprint(f\"Phone: {person.phone_number}\")\nprint(f\"Email: {person.email_adress}\")\n```\n\nThe package also supports other LLM providers like MistralAI:\n\n```python\nfrom langchain_mistralai import ChatMistralAI\n\nllm = ChatMistralAI(api_key=\"your-api-key\", model=\"mistral-large-latest\")\namplifier = Amplifier[ChatMistralAI, Person](llm=llm)\n```\n\nIn fact, you can use any LLM provider that is supported by [langchain](https://python.langchain.com/docs/integrations/providers/).\nHowever, you will need to first install the corresponding langchain integration.\n\nAssuming you use pip:\n\n```bash\npip install langchain-\u003cprovider\u003e\n```\n\n# Contributing\n\nWe love contributions from the community! There are many ways you can help make AMPLIFAI better:\n\n## Ways to Contribute\n\n- 🐛 **Report Bugs**: Found a bug? Please create an issue with detailed steps to reproduce it\n- 💡 **Feature Requests**: Have an idea for a new feature? Open an issue and let's discuss it\n- 📝 **Improve Documentation**: Help us make the documentation clearer and more comprehensive\n- 🔧 **Code Contributions**: Submit pull requests for bug fixes or new features\n- 🌟 **Spread the Word**: Star the repository and share it with your network\n\n\n\n## Code of Conduct\n\nPlease note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.\n\n# License\n\nBy contributing, you agree that your contributions will be licensed under the project's [MIT License](LICENSE).\n\nLet's build something amazing together! 🚀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvianneymi%2Famplifai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvianneymi%2Famplifai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvianneymi%2Famplifai/lists"}