{"id":34089345,"url":"https://github.com/isaacus-dev/isaacus-haystack","last_synced_at":"2025-12-30T15:27:56.605Z","repository":{"id":320114108,"uuid":"1080845365","full_name":"isaacus-dev/isaacus-haystack","owner":"isaacus-dev","description":"Isaacus integrations for Haystack","archived":false,"fork":false,"pushed_at":"2025-10-22T01:21:51.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-22T03:08:03.581Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/isaacus-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-10-22T00:25:20.000Z","updated_at":"2025-10-22T01:21:54.000Z","dependencies_parsed_at":"2025-10-22T03:08:07.077Z","dependency_job_id":"9c6a516f-3383-4e13-9240-a70868f7838d","html_url":"https://github.com/isaacus-dev/isaacus-haystack","commit_stats":null,"previous_names":["isaacus-dev/isaacus-haystack"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/isaacus-dev/isaacus-haystack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaacus-dev%2Fisaacus-haystack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaacus-dev%2Fisaacus-haystack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaacus-dev%2Fisaacus-haystack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaacus-dev%2Fisaacus-haystack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/isaacus-dev","download_url":"https://codeload.github.com/isaacus-dev/isaacus-haystack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaacus-dev%2Fisaacus-haystack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27729433,"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","status":"online","status_checked_at":"2025-12-14T02:00:11.348Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-14T14:00:48.373Z","updated_at":"2025-12-14T14:01:33.206Z","avatar_url":"https://github.com/isaacus-dev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![PyPI - Version](https://img.shields.io/pypi/v/isaacus-haystack.svg)](https://pypi.org/project/isaacus-haystack)\n## Overview\n[Isaacus](https://isaacus.com/) is a foundational legal AI research company building AI models, apps, and tools for the legal tech ecosystem.\n\nIsaacus' offering includes [Kanon 2 Embedder](https://isaacus.com/blog/introducing-kanon-2-embedder), the world's best legal embedding model (as measured on the [Massive Legal Embedding Benchmark](https://isaacus.com/blog/introducing-mleb)), as well as [legal zero-shot classification](https://docs.isaacus.com/models/introduction#universal-classification) and [legal extractive question answering models](https://docs.isaacus.com/models/introduction#answer-extraction).\n\nIsaacus offers first-class support for Haystack through the `isaacus-haystack` integration package.\n\n## Installation\n```bash\npip install isaacus-haystack\n```\n\n## Components\n- `IsaacusTextEmbedder` – embeds query text into a vector.\n- `IsaacusDocumentEmbedder` – embeds Haystack `Document`s and writes to `document.embedding`.\n\n## Quick Example\n```python\nfrom haystack import Pipeline, Document\nfrom haystack.document_stores.in_memory import InMemoryDocumentStore\nfrom haystack.components.retrievers.in_memory import InMemoryEmbeddingRetriever\nfrom haystack.utils import Secret\nfrom haystack_integrations.components.embedders.isaacus import (IsaacusTextEmbedder, IsaacusDocumentEmbedder)\n\nstore = InMemoryDocumentStore(embedding_similarity_function=\"dot_product\")\nembedder = IsaacusDocumentEmbedder(\n    api_key=Secret.from_env_var(\"ISAACUS_API_KEY\"),\n    model=\"kanon-2-embedder\",          # choose any supported Isaacus embedding model\n    # dimensions=1792,                 # optionally set to match your vector DB\n)\n\nraw_docs = [Document(content=\"Isaacus releases Kanon 2 Embedder: the world's best legal embedding model.\"),\n            Document(content=\"Isaacus also offers legal zero-shot classification and extractive question answering models.\")]\nstore.write_documents(embedder.run(raw_docs)[\"documents\"])\n\npipe = Pipeline()\npipe.add_component(\"q\", IsaacusTextEmbedder(\n    api_key=Secret.from_env_var(\"ISAACUS_API_KEY\"),\n    model=\"kanon-2-embedder\",\n))\npipe.add_component(\"ret\", InMemoryEmbeddingRetriever(document_store=store))\npipe.connect(\"q.embedding\", \"ret.query_embedding\")\n\nprint(pipe.run({\"q\": {\"text\": \"Who built Kanon 2 Embedder?\"}}))\n```\n\n## Docs\n- Isaacus Embeddings API: https://docs.isaacus.com/capabilities/embedding\n- Haystack: https://haystack.deepset.ai/\n\n## License\nApache-2.0","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisaacus-dev%2Fisaacus-haystack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisaacus-dev%2Fisaacus-haystack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisaacus-dev%2Fisaacus-haystack/lists"}