{"id":34075091,"url":"https://github.com/mixedbread-ai/mixedbread-ai-langchain","last_synced_at":"2026-04-05T18:32:03.291Z","repository":{"id":296022605,"uuid":"991317307","full_name":"mixedbread-ai/mixedbread-ai-langchain","owner":"mixedbread-ai","description":"The Mixedbread Langchain Integration","archived":false,"fork":false,"pushed_at":"2025-06-30T17:19:09.000Z","size":247,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-16T10:19:36.830Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mixedbread-ai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-27T12:53:46.000Z","updated_at":"2025-06-30T17:19:12.000Z","dependencies_parsed_at":"2025-06-18T16:24:55.993Z","dependency_job_id":"22e9cc10-e596-4d71-8a8e-2c8e6e90b1ac","html_url":"https://github.com/mixedbread-ai/mixedbread-ai-langchain","commit_stats":null,"previous_names":["mixedbread-ai/mixedbread-ai-langchain"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mixedbread-ai/mixedbread-ai-langchain","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mixedbread-ai%2Fmixedbread-ai-langchain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mixedbread-ai%2Fmixedbread-ai-langchain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mixedbread-ai%2Fmixedbread-ai-langchain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mixedbread-ai%2Fmixedbread-ai-langchain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mixedbread-ai","download_url":"https://codeload.github.com/mixedbread-ai/mixedbread-ai-langchain/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mixedbread-ai%2Fmixedbread-ai-langchain/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31446523,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T15:22:31.103Z","status":"ssl_error","status_checked_at":"2026-04-05T15:22:00.205Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2025-12-14T09:04:00.591Z","updated_at":"2026-04-05T18:32:03.286Z","avatar_url":"https://github.com/mixedbread-ai.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mixedbread AI Langchain Integration\n\n[![PyPI version](https://badge.fury.io/py/mixedbread-ai-langchain.svg)](https://badge.fury.io/py/mixedbread-ai-langchain)\n[![Python versions](https://img.shields.io/pypi/pyversions/mixedbread-ai-langchain.svg)](https://pypi.org/project/mixedbread-ai-langchain/)\n\n**Mixedbread AI** integration for **LangChain**. This package provides seamless access to Mixedbread's multimodal AI capabilities, enabling intelligent search that understands meaning across text, images, code, PDFs, and diverse document types. Use our state of the art embedding and reranking models as part of your langchain workflows.\n\n## Components\n\n- **MixedbreadEmbeddings** - State-of-the-art embedding models that generate vectors capturing deep contextual meaning, with full async support and batch processing capabilities for transforming unstructured data into intelligent search\n- **MixedbreadReranker** - Powerful semantic reranking that significantly boosts search relevance by applying sophisticated models to reorder initial search results, essential for optimizing RAG applications and improving precision\n- **MixedbreadDocumentLoader** - Layout-aware document parsing supporting PDF, PPTX, HTML and more formats, providing structured output with detailed content elements for high-quality downstream processing\n- **MixedbreadVectorStoreRetriever** - AI-native search engine that enables conversational queries across multimodal data, supporting millions of documents with natural language understanding across multiple languages.\n\n## Installation\n\n```bash\npip install mixedbread-ai-langchain\n```\n\n## Quick Start\n\nGet your API key from the [Mixedbread Platform](https://www.platform.mixedbread.com/) and set it as an environment variable:\n\n```bash\nexport MXBAI_API_KEY=\"your-api-key\"\n```\n\n### Basic Usage\n\n```python\nfrom mixedbread_ai_langchain import MixedbreadEmbeddings\n\nembeddings = MixedbreadEmbeddings(model=\"mixedbread-ai/mxbai-embed-large-v1\")\nresult = embeddings.embed_query(\"Who is German and likes bread?\")\n```\n\n## Async Support\n\nAll components support async operations:\n\n```python\nimport asyncio\n\nasync def embed_text():\n    embeddings = MixedbreadEmbeddings()\n    result = await embeddings.aembed_query(\"Async embedding example\")\n    return result\n\nembedding = asyncio.run(embed_text())\n```\n\n## Examples\n\nSee the [`examples/`](./examples/) directory for complete usage examples:\n\n- **[Embeddings](https://github.com/mixedbread-ai/mixedbread-ai-langchain/blob/main/examples/embeddings_example.py)** - Text and document embedding\n- **[Reranker](https://github.com/mixedbread-ai/mixedbread-ai-langchain/blob/main/examples/reranker_example.py)** - Document reranking\n- **[Document Loader](https://github.com/mixedbread-ai/mixedbread-ai-langchain/blob/main/examples/document_loader_example.py)** - File parsing and loading\n- **[Vector Retriever](https://github.com/mixedbread-ai/mixedbread-ai-langchain/blob/main/examples/retriever_example.py)** - Vector-based search\n\n## Testing\n\n```bash\n# Install dev dependencies\npip install -e \".[dev]\"\n\n# Run all tests\npython run_tests.py all\n\n# Run unit tests only (no API key required)\npython run_tests.py unit\n\n# Run integration tests (requires API key)\npython run_tests.py integration\n\n# Run specific test files\npython run_tests.py tests/test_embeddings.py\n```\n\n## Documentation\n\nLearn more at [mixedbread.com/docs](https://www.mixedbread.com/docs):\n\n- [Embeddings API](https://www.mixedbread.com/docs/embeddings/overview)\n- [Reranking API](https://www.mixedbread.com/docs/reranking/overview)\n- [Parsing API](https://www.mixedbread.com/docs/parsing/overview)\n- [Vector Stores API](https://www.mixedbread.com/docs/vector-stores/overview)\n\n## License\n\nApache 2.0 License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmixedbread-ai%2Fmixedbread-ai-langchain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmixedbread-ai%2Fmixedbread-ai-langchain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmixedbread-ai%2Fmixedbread-ai-langchain/lists"}