indx 0.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- indx-0.0.1/.gitignore +37 -0
- indx-0.0.1/CHANGELOG.md +67 -0
- indx-0.0.1/CONTRIBUTING.md +207 -0
- indx-0.0.1/LICENSE +201 -0
- indx-0.0.1/NOTICE +16 -0
- indx-0.0.1/PKG-INFO +306 -0
- indx-0.0.1/README.md +129 -0
- indx-0.0.1/examples/README.md +47 -0
- indx-0.0.1/examples/agent_quickstart.py +75 -0
- indx-0.0.1/examples/custom_plugin/README.md +43 -0
- indx-0.0.1/examples/custom_plugin/indx_uppercase_parser.py +64 -0
- indx-0.0.1/examples/custom_plugin/pyproject.toml +33 -0
- indx-0.0.1/examples/quickstart.py +71 -0
- indx-0.0.1/examples/sample_space/architecture.md +14 -0
- indx-0.0.1/examples/sample_space/getting-started.md +11 -0
- indx-0.0.1/noxfile.py +81 -0
- indx-0.0.1/pyproject.toml +258 -0
- indx-0.0.1/src/indx/__init__.py +36 -0
- indx-0.0.1/src/indx/_version.py +3 -0
- indx-0.0.1/src/indx/agent/__init__.py +54 -0
- indx-0.0.1/src/indx/agent/claude_agent.py +62 -0
- indx-0.0.1/src/indx/agent/connector.py +309 -0
- indx-0.0.1/src/indx/agent/langchain.py +106 -0
- indx-0.0.1/src/indx/agent/mcp.py +72 -0
- indx-0.0.1/src/indx/agent/openai_agents.py +43 -0
- indx-0.0.1/src/indx/agent/pydantic_ai.py +47 -0
- indx-0.0.1/src/indx/agent/schema.py +177 -0
- indx-0.0.1/src/indx/app/__init__.py +26 -0
- indx-0.0.1/src/indx/app/api.py +667 -0
- indx-0.0.1/src/indx/app/models.py +212 -0
- indx-0.0.1/src/indx/app/server.py +110 -0
- indx-0.0.1/src/indx/app/static/.gitkeep +0 -0
- indx-0.0.1/src/indx/archive/__init__.py +6 -0
- indx-0.0.1/src/indx/archive/format.py +24 -0
- indx-0.0.1/src/indx/archive/reader.py +86 -0
- indx-0.0.1/src/indx/archive/writer.py +52 -0
- indx-0.0.1/src/indx/cli/__init__.py +1 -0
- indx-0.0.1/src/indx/cli/_render.py +97 -0
- indx-0.0.1/src/indx/cli/app.py +423 -0
- indx-0.0.1/src/indx/cli/build.py +270 -0
- indx-0.0.1/src/indx/cli/inspect.py +75 -0
- indx-0.0.1/src/indx/cli/query.py +61 -0
- indx-0.0.1/src/indx/config/__init__.py +22 -0
- indx-0.0.1/src/indx/config/defaults.py +27 -0
- indx-0.0.1/src/indx/config/loader.py +224 -0
- indx-0.0.1/src/indx/config/schema.py +139 -0
- indx-0.0.1/src/indx/core/__init__.py +24 -0
- indx-0.0.1/src/indx/core/chunk.py +50 -0
- indx-0.0.1/src/indx/core/context.py +44 -0
- indx-0.0.1/src/indx/core/document.py +49 -0
- indx-0.0.1/src/indx/core/knowledge_space.py +125 -0
- indx-0.0.1/src/indx/core/parsed.py +32 -0
- indx-0.0.1/src/indx/core/relation.py +24 -0
- indx-0.0.1/src/indx/core/source.py +23 -0
- indx-0.0.1/src/indx/core/stats.py +22 -0
- indx-0.0.1/src/indx/demo/__init__.py +9 -0
- indx-0.0.1/src/indx/demo/corpus/engineering/code-review.md +23 -0
- indx-0.0.1/src/indx/demo/corpus/engineering/guide.md +21 -0
- indx-0.0.1/src/indx/demo/corpus/handbook/onboarding.md +22 -0
- indx-0.0.1/src/indx/demo/corpus/handbook/welcome.md +18 -0
- indx-0.0.1/src/indx/demo/corpus/people/remote-work.md +20 -0
- indx-0.0.1/src/indx/demo/corpus/people/team.txt +16 -0
- indx-0.0.1/src/indx/demo/corpus/people/time-off.md +19 -0
- indx-0.0.1/src/indx/embed/__init__.py +9 -0
- indx-0.0.1/src/indx/embed/azure.py +173 -0
- indx-0.0.1/src/indx/embed/base.py +15 -0
- indx-0.0.1/src/indx/embed/bedrock.py +168 -0
- indx-0.0.1/src/indx/embed/bge_m3.py +104 -0
- indx-0.0.1/src/indx/embed/cohere.py +122 -0
- indx-0.0.1/src/indx/embed/e5.py +100 -0
- indx-0.0.1/src/indx/embed/hash_embedder.py +34 -0
- indx-0.0.1/src/indx/embed/litellm.py +99 -0
- indx-0.0.1/src/indx/embed/openai.py +91 -0
- indx-0.0.1/src/indx/embed/vertex.py +119 -0
- indx-0.0.1/src/indx/errors.py +81 -0
- indx-0.0.1/src/indx/llm/__init__.py +10 -0
- indx-0.0.1/src/indx/llm/anthropic.py +110 -0
- indx-0.0.1/src/indx/llm/azure.py +221 -0
- indx-0.0.1/src/indx/llm/base.py +23 -0
- indx-0.0.1/src/indx/llm/bedrock.py +144 -0
- indx-0.0.1/src/indx/llm/litellm.py +99 -0
- indx-0.0.1/src/indx/llm/none.py +24 -0
- indx-0.0.1/src/indx/llm/ollama.py +117 -0
- indx-0.0.1/src/indx/llm/openai.py +136 -0
- indx-0.0.1/src/indx/llm/vertex.py +142 -0
- indx-0.0.1/src/indx/llm/vllm.py +108 -0
- indx-0.0.1/src/indx/output/__init__.py +13 -0
- indx-0.0.1/src/indx/output/base.py +15 -0
- indx-0.0.1/src/indx/output/indx_writer.py +90 -0
- indx-0.0.1/src/indx/output/jsonl_writer.py +30 -0
- indx-0.0.1/src/indx/output/langchain.py +101 -0
- indx-0.0.1/src/indx/output/llamaindex.py +102 -0
- indx-0.0.1/src/indx/parsers/__init__.py +10 -0
- indx-0.0.1/src/indx/parsers/base.py +19 -0
- indx-0.0.1/src/indx/parsers/docai.py +161 -0
- indx-0.0.1/src/indx/parsers/docintel.py +158 -0
- indx-0.0.1/src/indx/parsers/docling.py +197 -0
- indx-0.0.1/src/indx/parsers/llamaparse.py +112 -0
- indx-0.0.1/src/indx/parsers/markitdown.py +89 -0
- indx-0.0.1/src/indx/parsers/plaintext.py +35 -0
- indx-0.0.1/src/indx/parsers/textract.py +106 -0
- indx-0.0.1/src/indx/parsers/unstructured.py +119 -0
- indx-0.0.1/src/indx/pipeline/__init__.py +6 -0
- indx-0.0.1/src/indx/pipeline/pipeline.py +671 -0
- indx-0.0.1/src/indx/pipeline/stage.py +14 -0
- indx-0.0.1/src/indx/pipeline/stages/__init__.py +17 -0
- indx-0.0.1/src/indx/pipeline/stages/chunk.py +55 -0
- indx-0.0.1/src/indx/pipeline/stages/enrich.py +311 -0
- indx-0.0.1/src/indx/pipeline/stages/pack.py +35 -0
- indx-0.0.1/src/indx/pipeline/stages/parse.py +23 -0
- indx-0.0.1/src/indx/pipeline/stages/relate.py +209 -0
- indx-0.0.1/src/indx/pipeline/stages/walk.py +26 -0
- indx-0.0.1/src/indx/py.typed +0 -0
- indx-0.0.1/src/indx/registry/__init__.py +27 -0
- indx-0.0.1/src/indx/registry/builtins.py +136 -0
- indx-0.0.1/src/indx/registry/plugins.py +48 -0
- indx-0.0.1/src/indx/registry/registry.py +74 -0
- indx-0.0.1/src/indx/store/__init__.py +13 -0
- indx-0.0.1/src/indx/store/azure_search.py +311 -0
- indx-0.0.1/src/indx/store/base.py +56 -0
- indx-0.0.1/src/indx/store/bigquery.py +261 -0
- indx-0.0.1/src/indx/store/chroma.py +202 -0
- indx-0.0.1/src/indx/store/jsonl.py +48 -0
- indx-0.0.1/src/indx/store/lancedb.py +209 -0
- indx-0.0.1/src/indx/store/opensearch.py +278 -0
- indx-0.0.1/src/indx/store/pgvector.py +230 -0
- indx-0.0.1/src/indx/store/qdrant.py +243 -0
- indx-0.0.1/src/indx/store/s3vectors.py +304 -0
- indx-0.0.1/src/indx/store/vertex_vector.py +244 -0
- indx-0.0.1/src/indx/utils/__init__.py +7 -0
- indx-0.0.1/src/indx/utils/cache.py +84 -0
- indx-0.0.1/src/indx/utils/hashing.py +12 -0
- indx-0.0.1/src/indx/utils/io.py +35 -0
- indx-0.0.1/src/indx/utils/lazy.py +26 -0
- indx-0.0.1/src/indx/utils/logging.py +39 -0
- indx-0.0.1/src/indx/utils/zip_input.py +70 -0
- indx-0.0.1/src/indx/vlm/__init__.py +5 -0
- indx-0.0.1/src/indx/vlm/azure.py +155 -0
- indx-0.0.1/src/indx/vlm/base.py +15 -0
- indx-0.0.1/src/indx/vlm/bedrock.py +139 -0
- indx-0.0.1/src/indx/vlm/gpt4o.py +100 -0
- indx-0.0.1/src/indx/vlm/local.py +142 -0
- indx-0.0.1/src/indx/vlm/none.py +13 -0
- indx-0.0.1/src/indx/vlm/qwen_vl.py +158 -0
- indx-0.0.1/src/indx/vlm/vertex.py +122 -0
- indx-0.0.1/tests/airgap/test_offline_default_stack.py +46 -0
- indx-0.0.1/tests/conftest.py +47 -0
- indx-0.0.1/tests/corpus/PROVENANCE.md +20 -0
- indx-0.0.1/tests/corpus/_heavy/.gitkeep +0 -0
- indx-0.0.1/tests/corpus/acme_kb/README.md +5 -0
- indx-0.0.1/tests/corpus/acme_kb/company-overview.md +5 -0
- indx-0.0.1/tests/corpus/acme_kb/engineering/architecture/index.md +5 -0
- indx-0.0.1/tests/corpus/acme_kb/engineering/architecture/search-pipeline.md +5 -0
- indx-0.0.1/tests/corpus/acme_kb/engineering/architecture/vector-store.md +5 -0
- indx-0.0.1/tests/corpus/acme_kb/engineering/guides/code-review.md +5 -0
- indx-0.0.1/tests/corpus/acme_kb/engineering/guides/testing-strategy.md +5 -0
- indx-0.0.1/tests/corpus/acme_kb/engineering/index.md +5 -0
- indx-0.0.1/tests/corpus/acme_kb/engineering/runbooks/deploy-checklist.md +5 -0
- indx-0.0.1/tests/corpus/acme_kb/engineering/runbooks/incident-response.md +5 -0
- indx-0.0.1/tests/corpus/acme_kb/finance/quarterly-report-part-1.txt +5 -0
- indx-0.0.1/tests/corpus/acme_kb/finance/quarterly-report-part-2.txt +4 -0
- indx-0.0.1/tests/corpus/acme_kb/finance/quarterly-report-part-3.txt +4 -0
- indx-0.0.1/tests/corpus/acme_kb/handbook/benefits/health-insurance.md +5 -0
- indx-0.0.1/tests/corpus/acme_kb/handbook/benefits/index.md +4 -0
- indx-0.0.1/tests/corpus/acme_kb/handbook/benefits/paid-time-off.md +5 -0
- indx-0.0.1/tests/corpus/acme_kb/handbook/benefits/retirement-401k.md +5 -0
- indx-0.0.1/tests/corpus/acme_kb/handbook/index.md +4 -0
- indx-0.0.1/tests/corpus/acme_kb/handbook/onboarding/accounts-and-access.md +5 -0
- indx-0.0.1/tests/corpus/acme_kb/handbook/onboarding/day-1-checklist.md +5 -0
- indx-0.0.1/tests/corpus/acme_kb/handbook/onboarding/index.md +4 -0
- indx-0.0.1/tests/corpus/acme_kb/policies/data-retention.md +5 -0
- indx-0.0.1/tests/corpus/acme_kb/policies/index.md +4 -0
- indx-0.0.1/tests/corpus/acme_kb/policies/security-policy.rst +6 -0
- indx-0.0.1/tests/corpus/acme_kb.labels.yaml +116 -0
- indx-0.0.1/tests/corpus/airgap_smoke/note-1.md +3 -0
- indx-0.0.1/tests/corpus/airgap_smoke/note-10.md +3 -0
- indx-0.0.1/tests/corpus/airgap_smoke/note-2.md +3 -0
- indx-0.0.1/tests/corpus/airgap_smoke/note-3.md +3 -0
- indx-0.0.1/tests/corpus/airgap_smoke/note-4.md +3 -0
- indx-0.0.1/tests/corpus/airgap_smoke/note-5.md +3 -0
- indx-0.0.1/tests/corpus/airgap_smoke/note-6.md +3 -0
- indx-0.0.1/tests/corpus/airgap_smoke/note-7.md +3 -0
- indx-0.0.1/tests/corpus/airgap_smoke/note-8.md +3 -0
- indx-0.0.1/tests/corpus/airgap_smoke/note-9.md +3 -0
- indx-0.0.1/tests/corpus/nested_handbook/README.md +4 -0
- indx-0.0.1/tests/corpus/nested_handbook/eng/setup.md +3 -0
- indx-0.0.1/tests/corpus/nested_handbook/onboarding/day-two.md +3 -0
- indx-0.0.1/tests/corpus/nested_handbook/onboarding/index.md +3 -0
- indx-0.0.1/tests/corpus/nested_handbook/onboarding/welcome.md +3 -0
- indx-0.0.1/tests/corpus/nested_handbook/policies/leave.md +3 -0
- indx-0.0.1/tests/corpus/nested_handbook/policies/security.md +3 -0
- indx-0.0.1/tests/corpus/nested_handbook.labels.yaml +31 -0
- indx-0.0.1/tests/corpus/ocr/sample.png +0 -0
- indx-0.0.1/tests/corpus/split_report/quarterly-report-part-1.txt +3 -0
- indx-0.0.1/tests/corpus/split_report/quarterly-report-part-2.txt +3 -0
- indx-0.0.1/tests/corpus/split_report/quarterly-report-part-3.txt +3 -0
- indx-0.0.1/tests/corpus/split_report.labels.yaml +16 -0
- indx-0.0.1/tests/corpus_tests/conftest.py +94 -0
- indx-0.0.1/tests/corpus_tests/test_complex_journey.py +184 -0
- indx-0.0.1/tests/corpus_tests/test_determinism.py +35 -0
- indx-0.0.1/tests/corpus_tests/test_relation_quality.py +34 -0
- indx-0.0.1/tests/corpus_tests/test_retrieval.py +36 -0
- indx-0.0.1/tests/corpus_tests/test_structure.py +27 -0
- indx-0.0.1/tests/docker/conftest.py +84 -0
- indx-0.0.1/tests/docker/dockerkit.py +27 -0
- indx-0.0.1/tests/docker/test_clean_install.py +51 -0
- indx-0.0.1/tests/docker/test_e2e_journey.py +38 -0
- indx-0.0.1/tests/docker/test_missing_extra.py +21 -0
- indx-0.0.1/tests/docker/test_plugin_install.py +42 -0
- indx-0.0.1/tests/docker/test_portability.py +68 -0
- indx-0.0.1/tests/docker/test_repro_build.py +31 -0
- indx-0.0.1/tests/extras/conftest.py +67 -0
- indx-0.0.1/tests/extras/test_agent_connectors.py +109 -0
- indx-0.0.1/tests/extras/test_embedders.py +53 -0
- indx-0.0.1/tests/extras/test_mcp_server.py +135 -0
- indx-0.0.1/tests/extras/test_parsers.py +48 -0
- indx-0.0.1/tests/extras/test_stores.py +50 -0
- indx-0.0.1/tests/extras/test_writers.py +46 -0
- indx-0.0.1/tests/integration/test_store_contract.py +49 -0
- indx-0.0.1/tests/live/conftest.py +147 -0
- indx-0.0.1/tests/live/test_agent.py +125 -0
- indx-0.0.1/tests/live/test_anthropic.py +38 -0
- indx-0.0.1/tests/live/test_aws.py +106 -0
- indx-0.0.1/tests/live/test_azure.py +106 -0
- indx-0.0.1/tests/live/test_cohere.py +47 -0
- indx-0.0.1/tests/live/test_gcp.py +114 -0
- indx-0.0.1/tests/live/test_llamaparse.py +44 -0
- indx-0.0.1/tests/live/test_openai.py +105 -0
- indx-0.0.1/tests/plugins/fake_plugin/pyproject.toml +18 -0
- indx-0.0.1/tests/plugins/fake_plugin/src/fake_plugin/__init__.py +1 -0
- indx-0.0.1/tests/plugins/fake_plugin/src/fake_plugin/store.py +22 -0
- indx-0.0.1/tests/test_doc_contract.py +195 -0
- indx-0.0.1/tests/unit/__init__.py +0 -0
- indx-0.0.1/tests/unit/agent/__init__.py +0 -0
- indx-0.0.1/tests/unit/agent/conftest.py +90 -0
- indx-0.0.1/tests/unit/agent/test_claude_agent.py +67 -0
- indx-0.0.1/tests/unit/agent/test_cli_mcp.py +55 -0
- indx-0.0.1/tests/unit/agent/test_connector.py +141 -0
- indx-0.0.1/tests/unit/agent/test_langchain.py +102 -0
- indx-0.0.1/tests/unit/agent/test_mcp.py +95 -0
- indx-0.0.1/tests/unit/agent/test_openai_agents.py +49 -0
- indx-0.0.1/tests/unit/agent/test_pydantic_ai.py +45 -0
- indx-0.0.1/tests/unit/app/__init__.py +0 -0
- indx-0.0.1/tests/unit/app/conftest.py +37 -0
- indx-0.0.1/tests/unit/app/test_api.py +334 -0
- indx-0.0.1/tests/unit/app/test_app_command.py +82 -0
- indx-0.0.1/tests/unit/embed/__init__.py +0 -0
- indx-0.0.1/tests/unit/embed/test_azure.py +178 -0
- indx-0.0.1/tests/unit/embed/test_bedrock.py +182 -0
- indx-0.0.1/tests/unit/embed/test_bge_m3.py +141 -0
- indx-0.0.1/tests/unit/embed/test_cohere.py +187 -0
- indx-0.0.1/tests/unit/embed/test_e5.py +111 -0
- indx-0.0.1/tests/unit/embed/test_litellm.py +91 -0
- indx-0.0.1/tests/unit/embed/test_openai.py +108 -0
- indx-0.0.1/tests/unit/embed/test_vertex.py +154 -0
- indx-0.0.1/tests/unit/llm/__init__.py +1 -0
- indx-0.0.1/tests/unit/llm/test_anthropic.py +143 -0
- indx-0.0.1/tests/unit/llm/test_azure.py +248 -0
- indx-0.0.1/tests/unit/llm/test_bedrock.py +179 -0
- indx-0.0.1/tests/unit/llm/test_litellm.py +91 -0
- indx-0.0.1/tests/unit/llm/test_ollama.py +147 -0
- indx-0.0.1/tests/unit/llm/test_openai.py +184 -0
- indx-0.0.1/tests/unit/llm/test_vertex.py +156 -0
- indx-0.0.1/tests/unit/llm/test_vllm.py +159 -0
- indx-0.0.1/tests/unit/output/__init__.py +0 -0
- indx-0.0.1/tests/unit/output/test_langchain.py +174 -0
- indx-0.0.1/tests/unit/output/test_llamaindex.py +166 -0
- indx-0.0.1/tests/unit/parsers/__init__.py +0 -0
- indx-0.0.1/tests/unit/parsers/test_docai.py +225 -0
- indx-0.0.1/tests/unit/parsers/test_docintel.py +218 -0
- indx-0.0.1/tests/unit/parsers/test_docling.py +161 -0
- indx-0.0.1/tests/unit/parsers/test_llamaparse.py +144 -0
- indx-0.0.1/tests/unit/parsers/test_markitdown.py +121 -0
- indx-0.0.1/tests/unit/parsers/test_textract.py +161 -0
- indx-0.0.1/tests/unit/parsers/test_unstructured.py +151 -0
- indx-0.0.1/tests/unit/store/__init__.py +0 -0
- indx-0.0.1/tests/unit/store/test_azure_search.py +266 -0
- indx-0.0.1/tests/unit/store/test_bigquery.py +276 -0
- indx-0.0.1/tests/unit/store/test_chroma.py +233 -0
- indx-0.0.1/tests/unit/store/test_lancedb.py +255 -0
- indx-0.0.1/tests/unit/store/test_opensearch.py +219 -0
- indx-0.0.1/tests/unit/store/test_pgvector.py +240 -0
- indx-0.0.1/tests/unit/store/test_qdrant.py +216 -0
- indx-0.0.1/tests/unit/store/test_s3vectors.py +244 -0
- indx-0.0.1/tests/unit/store/test_vertex_vector.py +229 -0
- indx-0.0.1/tests/unit/test_archive_roundtrip.py +43 -0
- indx-0.0.1/tests/unit/test_cli.py +63 -0
- indx-0.0.1/tests/unit/test_cli_cloud_presets.py +104 -0
- indx-0.0.1/tests/unit/test_cli_error_boundary.py +73 -0
- indx-0.0.1/tests/unit/test_cli_features.py +179 -0
- indx-0.0.1/tests/unit/test_cli_jsonl_load.py +91 -0
- indx-0.0.1/tests/unit/test_config_loader.py +80 -0
- indx-0.0.1/tests/unit/test_core_models.py +34 -0
- indx-0.0.1/tests/unit/test_demo_packaging.py +116 -0
- indx-0.0.1/tests/unit/test_enrich_types.py +204 -0
- indx-0.0.1/tests/unit/test_pipeline_dim.py +167 -0
- indx-0.0.1/tests/unit/test_pipeline_features.py +271 -0
- indx-0.0.1/tests/unit/test_pipeline_sdk_api.py +129 -0
- indx-0.0.1/tests/unit/test_registry.py +26 -0
- indx-0.0.1/tests/unit/test_relate_advanced.py +178 -0
- indx-0.0.1/tests/unit/test_stages.py +61 -0
- indx-0.0.1/tests/unit/test_store_jsonl.py +50 -0
- indx-0.0.1/tests/unit/test_store_lazy_dim.py +369 -0
- indx-0.0.1/tests/unit/test_zip_input.py +93 -0
- indx-0.0.1/tests/unit/vlm/__init__.py +0 -0
- indx-0.0.1/tests/unit/vlm/test_azure.py +188 -0
- indx-0.0.1/tests/unit/vlm/test_bedrock.py +175 -0
- indx-0.0.1/tests/unit/vlm/test_gpt4o.py +147 -0
- indx-0.0.1/tests/unit/vlm/test_local.py +146 -0
- indx-0.0.1/tests/unit/vlm/test_qwen_vl.py +197 -0
- indx-0.0.1/tests/unit/vlm/test_vertex.py +182 -0
indx-0.0.1/.gitignore
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*.egg-info/
|
|
5
|
+
.eggs/
|
|
6
|
+
build/
|
|
7
|
+
dist/
|
|
8
|
+
.venv/
|
|
9
|
+
venv/
|
|
10
|
+
|
|
11
|
+
# Tooling caches
|
|
12
|
+
.pytest_cache/
|
|
13
|
+
.mypy_cache/
|
|
14
|
+
.ruff_cache/
|
|
15
|
+
.nox/
|
|
16
|
+
.coverage
|
|
17
|
+
htmlcov/
|
|
18
|
+
|
|
19
|
+
# indx
|
|
20
|
+
*.indx
|
|
21
|
+
/scratch/
|
|
22
|
+
tests/corpus/_heavy/*
|
|
23
|
+
!tests/corpus/_heavy/.gitkeep
|
|
24
|
+
|
|
25
|
+
# indx app — the Next.js bundle is build-time only (scripts/build_webapp.sh regenerates it).
|
|
26
|
+
# Only the tracked .gitkeep is committed; `next build` clobbers index.html with a real bundle
|
|
27
|
+
# that references the (ignored) _next/ assets, so we never track it. The server serves an
|
|
28
|
+
# inline "not built yet" fallback (server.py) when the bundle is absent.
|
|
29
|
+
src/indx/app/static/*
|
|
30
|
+
!src/indx/app/static/.gitkeep
|
|
31
|
+
|
|
32
|
+
# webapp (Next.js frontend) build artifacts & deps
|
|
33
|
+
webapp/node_modules/
|
|
34
|
+
webapp/.next/
|
|
35
|
+
webapp/out/
|
|
36
|
+
webapp/.turbo/
|
|
37
|
+
*.tsbuildinfo
|
indx-0.0.1/CHANGELOG.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `indx` are documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
See [Versioning & compatibility](https://docs.indx.jp) for what
|
|
8
|
+
major/minor/patch mean for the CLI, the SDK, and the `.indx` artifact format.
|
|
9
|
+
|
|
10
|
+
## [Unreleased]
|
|
11
|
+
|
|
12
|
+
Nothing yet.
|
|
13
|
+
|
|
14
|
+
## [0.0.1] — 2026-06-07
|
|
15
|
+
|
|
16
|
+
First public release on PyPI: the light pure-Python core, the full
|
|
17
|
+
Walk → Parse → Chunk → Relate → Enrich → Embed+Pack pipeline, the registry of swappable
|
|
18
|
+
typed slots, and the complete set of optional cloud/local backends. The `.indx` archive
|
|
19
|
+
format is at `schema_version` `"1"`. See
|
|
20
|
+
[Versioning & compatibility](https://docs.indx.jp) for what
|
|
21
|
+
major/minor/patch mean for the CLI, the SDK, and the artifact format.
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
|
|
25
|
+
- Core pipeline and the `.indx` archive format (`schema_version` `"1"`): the light
|
|
26
|
+
pure-Python Walk → Parse → Chunk → Relate → Enrich → Embed+Pack flow, the registry, and
|
|
27
|
+
the swappable typed slots (parser / LLM / VLM / embedder / store / writer).
|
|
28
|
+
- `--offline` CLI profile that selects the pure-Python, air-gapped stack (plaintext
|
|
29
|
+
parser, `hash` embedder, `jsonl` store, `llm none`) without touching the documented
|
|
30
|
+
cloud defaults. This is the supported way to run with zero network calls — the slot
|
|
31
|
+
defaults in `src/indx/config/schema.py` are deliberately left as-is.
|
|
32
|
+
- `indx demo` command that produces an instant, zero-config knowledge space so the
|
|
33
|
+
"magical moment" is reachable in one command.
|
|
34
|
+
- Per-stage build timings, emitted as structured data via a build `--json` flag, for
|
|
35
|
+
local DX measurement without telemetry.
|
|
36
|
+
- JSONL-directory `inspect` and `query` support so a space materialized as JSONL can be
|
|
37
|
+
explored without re-sealing it into a `.indx` archive.
|
|
38
|
+
- `CONTRIBUTING` guide and runnable `examples/` covering real use cases.
|
|
39
|
+
- **AI-agent connectors** (`indx.agent`): `connect(archive)` turns a portable `.indx`
|
|
40
|
+
knowledge space into live tools for an agent — one method each for LangChain
|
|
41
|
+
(`.langchain()` / `.langchain_retriever()`), the OpenAI Agents SDK (`.openai()`),
|
|
42
|
+
Pydantic AI (`.pydantic_ai()`), and the Claude Agent SDK (`.claude()`), plus raw tool
|
|
43
|
+
specs (`.openai_schema()` / `.anthropic_schema()`) and a `.call()` dispatcher for the bare
|
|
44
|
+
Chat Completions / Messages API. New extras `indx[mcp]`, `indx[pydantic-ai]`,
|
|
45
|
+
`indx[openai-agents]`, `indx[claude-agent]`, and the `indx[agent]` umbrella; each adapter
|
|
46
|
+
is lazily imported and gated by its extra, so core stays light.
|
|
47
|
+
- **`indx mcp <archive>`** — serve a knowledge space over the Model Context Protocol so any
|
|
48
|
+
MCP client (Claude Desktop, Cursor, the TypeScript Mastra framework) can search it with no
|
|
49
|
+
Python glue. Built on FastMCP (prefers the standalone `fastmcp` package, falls back to the
|
|
50
|
+
FastMCP bundled in the `mcp` SDK). Needs `indx[mcp]` (or `indx[agent]`).
|
|
51
|
+
- **LiteLLM backends** (`indx[litellm]`): an `litellm` LLM adapter and embedder that reach
|
|
52
|
+
any provider through one interface — on-prem (Ollama, vLLM), and AWS Bedrock, Azure
|
|
53
|
+
OpenAI, GCP Vertex, or any hosted model — selected by LiteLLM's `provider/model` strings
|
|
54
|
+
(e.g. `--llm litellm:bedrock/anthropic.claude-3` or `--embedder litellm:azure/<deployment>`).
|
|
55
|
+
|
|
56
|
+
### Changed
|
|
57
|
+
|
|
58
|
+
- README quickstart reworked so the first copy-pasted command succeeds offline, instead
|
|
59
|
+
of failing on a missing cloud extra.
|
|
60
|
+
|
|
61
|
+
### Docs
|
|
62
|
+
|
|
63
|
+
- Overview/reference pages corrected against the real code shapes (e.g. `Document.doc_type`,
|
|
64
|
+
`KnowledgeSpace.documents()` as a method with the list stored under `documents_`,
|
|
65
|
+
`Manifest` carrying `schema_version` + `indx_version`).
|
|
66
|
+
- Added this CHANGELOG and a [Versioning & compatibility](https://docs.indx.jp)
|
|
67
|
+
reference chapter documenting SemVer intent and the `.indx` schema-compat policy.
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
# Contributing to indx
|
|
2
|
+
|
|
3
|
+
Thanks for helping build indx — the tool that turns a directory into a portable,
|
|
4
|
+
AI-ready knowledge space. This guide gets you from a fresh clone to a green PR, and walks
|
|
5
|
+
through the one workflow most contributors come for: **adding a backend without forking**.
|
|
6
|
+
|
|
7
|
+
indx is a light pure-Python core that orchestrates a fixed
|
|
8
|
+
**Walk → Parse → Chunk → Relate → Enrich → Embed+Pack** pipeline. Every external capability
|
|
9
|
+
(parser, LLM, VLM, embedder, vector store, output writer) is a **swappable typed slot**
|
|
10
|
+
resolved by name through a registry. Four constraints decide every change:
|
|
11
|
+
**local-first / air-gapped**, **no vendor lock-in**, **light core**, **determinism**. Keep
|
|
12
|
+
them in mind — most review feedback traces back to one of them.
|
|
13
|
+
|
|
14
|
+
## Dev setup
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
python -m venv .venv
|
|
18
|
+
. .venv/bin/activate
|
|
19
|
+
pip install -e ".[dev]"
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
That installs indx plus the dev toolchain (ruff, mypy, pytest, nox). The core stays tiny;
|
|
23
|
+
heavy/optional backends (docling, torch, openai, qdrant, ...) are **extras** you install
|
|
24
|
+
only when you need them. You never need any extra to run the offline core or the test suite.
|
|
25
|
+
|
|
26
|
+
Want to see it work right now? The [`examples/`](examples/) directory has a runnable,
|
|
27
|
+
fully-offline quickstart:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
python examples/quickstart.py
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## The gates
|
|
34
|
+
|
|
35
|
+
Three checks gate every change. Run them locally before you push:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
ruff check src tests # lint
|
|
39
|
+
mypy src/indx # strict type-check on the public API
|
|
40
|
+
pytest -q # fast offline suite: unit + corpus
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Also run the formatter check the way CI does:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
ruff format --check src tests
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
All three must be green. The suite is **offline by design** — it never reaches the network
|
|
50
|
+
and uses the deterministic core stack (`plaintext` / `hash` / `jsonl`), so it runs the same
|
|
51
|
+
on any machine.
|
|
52
|
+
|
|
53
|
+
### nox sessions
|
|
54
|
+
|
|
55
|
+
[`noxfile.py`](noxfile.py) wraps the gates and the heavier suites into reproducible
|
|
56
|
+
sessions. Run `nox -l` to list them; the real sessions are:
|
|
57
|
+
|
|
58
|
+
| session | what it does |
|
|
59
|
+
| ----------------- | -------------------------------------------------------------------- |
|
|
60
|
+
| `tests` | fast offline suite (unit + corpus); the default `pytest` run. Matrixed across 3.11/3.12/3.13. |
|
|
61
|
+
| `lint` | `ruff check` + `ruff format --check` on `src` and `tests`. |
|
|
62
|
+
| `typecheck` | `mypy src/indx` (strict). |
|
|
63
|
+
| `integration` | real backends via docker compose (qdrant / postgres / ollama). |
|
|
64
|
+
| `docker` | packaged-wheel distribution tests in clean containers. |
|
|
65
|
+
| `airgap` | default stack with **no egress**, in a network-isolated container. |
|
|
66
|
+
| `live` | real models end to end; nightly/manual, may require network. |
|
|
67
|
+
| `record-fixtures` | regenerate recorded ParsedDoc / embedding fixtures (deliberate). |
|
|
68
|
+
|
|
69
|
+
Day to day you only need `tests`, `lint`, and `typecheck`. The rest run in CI or on demand.
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
nox -s tests # fast offline suite
|
|
73
|
+
nox -s lint # ruff lint + format check
|
|
74
|
+
nox -s typecheck # mypy strict
|
|
75
|
+
nox -l # list every session
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Coding standards
|
|
79
|
+
|
|
80
|
+
A few rules carry most of the review weight:
|
|
81
|
+
|
|
82
|
+
- **Never `import` a heavy/optional vendor SDK at module top level.** Lazy-import it inside
|
|
83
|
+
`__init__` and gate it with `require_extra(...)` first (see the plugin how-to below).
|
|
84
|
+
- **Raise typed `IndxError` subclasses, never bare `ValueError`.** Library code must not
|
|
85
|
+
`print()` — only the CLI layer (`src/indx/cli/`) renders, via Rich.
|
|
86
|
+
- **Determinism is non-negotiable.** Same inputs + same component selection ⇒ byte-identical
|
|
87
|
+
`index.json`. Sort before assigning ids; thread the `seed`; pin golden files.
|
|
88
|
+
- **Models are Pydantic v2** and the public API is `mypy --strict` clean.
|
|
89
|
+
|
|
90
|
+
For the full picture:
|
|
91
|
+
|
|
92
|
+
- [`docs/reference/`](docs/reference/) — the "textbook": start with
|
|
93
|
+
[`00-overview.md`](docs/reference/00-overview.md) (dependency philosophy) and
|
|
94
|
+
[`13-tooling.md`](docs/reference/13-tooling.md) (ruff / mypy / nox), then the per-slot
|
|
95
|
+
chapters.
|
|
96
|
+
- The docsite contributing pages —
|
|
97
|
+
[`coding-standards`](docsite/src/content/docs/contributing/coding-standards.md) and
|
|
98
|
+
[`adding-a-backend`](docsite/src/content/docs/contributing/adding-a-backend.md).
|
|
99
|
+
|
|
100
|
+
## Add a backend without forking (plugin how-to)
|
|
101
|
+
|
|
102
|
+
This is the core extension story: a third-party package adds a new slot implementation
|
|
103
|
+
*without editing indx*. It is exactly what [`examples/custom_plugin/`](examples/custom_plugin/)
|
|
104
|
+
demonstrates — read it alongside this section.
|
|
105
|
+
|
|
106
|
+
### 1. Implement the slot's `typing.Protocol` — structurally
|
|
107
|
+
|
|
108
|
+
Each slot has a `typing.Protocol` you satisfy **by shape**, not by subclassing. For example,
|
|
109
|
+
the parser contract (`indx.parsers.base.Parser`) is just:
|
|
110
|
+
|
|
111
|
+
```python
|
|
112
|
+
from pathlib import Path
|
|
113
|
+
from indx.core.parsed import Block, ParsedDoc
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
class UppercaseParser:
|
|
117
|
+
name = "uppercase" # the slot name users select
|
|
118
|
+
version = "1"
|
|
119
|
+
|
|
120
|
+
def parse(self, path: Path) -> ParsedDoc:
|
|
121
|
+
text = path.read_text(encoding="utf-8")
|
|
122
|
+
return ParsedDoc(
|
|
123
|
+
source_path=str(path),
|
|
124
|
+
parser=self.name,
|
|
125
|
+
parser_version=self.version,
|
|
126
|
+
blocks=[Block(kind="text", text=text.upper().strip(), order=0)],
|
|
127
|
+
)
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
The other slots follow the same idea: an embedder exposes `name`, `dim`, and
|
|
131
|
+
`embed(texts) -> list[list[float]]`; a store exposes `upsert` / `search` / `delete`; etc.
|
|
132
|
+
See [`docs/reference/04-plugins-registry.md`](docs/reference/04-plugins-registry.md) and the
|
|
133
|
+
per-slot chapters (`05-parsers.md`, `07-embeddings.md`, `08-vector-stores.md`,
|
|
134
|
+
`09-output-writers.md`).
|
|
135
|
+
|
|
136
|
+
### 2. Lazy-import the vendor SDK inside `__init__`, gated first
|
|
137
|
+
|
|
138
|
+
If your backend wraps a heavy/optional dependency, do **not** import it at module top level —
|
|
139
|
+
that would break a bare core install. Import it inside `__init__`, and call
|
|
140
|
+
`indx.utils.lazy.require_extra(slot, name, extra, *module_names)` **first** so a missing
|
|
141
|
+
dependency surfaces as one actionable `MissingExtraError` only when the slot is selected:
|
|
142
|
+
|
|
143
|
+
```python
|
|
144
|
+
class MyVendorParser:
|
|
145
|
+
name = "myvendor"
|
|
146
|
+
|
|
147
|
+
def __init__(self) -> None:
|
|
148
|
+
from indx.utils.lazy import require_extra
|
|
149
|
+
|
|
150
|
+
require_extra("parser", "myvendor", "myvendor", "myvendor_sdk")
|
|
151
|
+
import myvendor_sdk # imported here, never at module top level
|
|
152
|
+
|
|
153
|
+
self._client = myvendor_sdk.Client()
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### 3. Register via an entry point in the correct group
|
|
157
|
+
|
|
158
|
+
Advertise your class under the slot's entry-point group in your package's `pyproject.toml`.
|
|
159
|
+
The group names are defined in `src/indx/registry/builtins.py` (`ENTRY_POINT_GROUPS` /
|
|
160
|
+
`STAGE_ENTRY_POINT_GROUP`):
|
|
161
|
+
|
|
162
|
+
| slot | entry-point group |
|
|
163
|
+
| -------- | -------------------------------------- |
|
|
164
|
+
| parser | `indx.parsers` |
|
|
165
|
+
| llm | `indx.llms` |
|
|
166
|
+
| vlm | `indx.vlms` |
|
|
167
|
+
| embedder | `indx.embedders` |
|
|
168
|
+
| store | `indx.stores` |
|
|
169
|
+
| writer | `indx.outputs` (legacy alias: `indx.writers`) |
|
|
170
|
+
| stage | `indx.stages` |
|
|
171
|
+
|
|
172
|
+
```toml
|
|
173
|
+
# in your plugin package's pyproject.toml
|
|
174
|
+
[project.entry-points."indx.parsers"]
|
|
175
|
+
uppercase = "indx_uppercase_parser:UppercaseParser"
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
Once your package is `pip install`ed, users select it by name — `--parser uppercase` on the
|
|
179
|
+
CLI, or `DirectoryPipeline(parser="uppercase", ...)` from the SDK.
|
|
180
|
+
|
|
181
|
+
### 4. How the registry resolves it
|
|
182
|
+
|
|
183
|
+
When a slot name is requested, `src/indx/registry/registry.py` resolves it in this order:
|
|
184
|
+
|
|
185
|
+
1. **First-party builtins** (`BUILTINS[slot]`) — loaded lazily by `module:attr`.
|
|
186
|
+
2. **Third-party entry points** for the slot's group(s) (`ENTRY_POINT_GROUPS[slot]`).
|
|
187
|
+
|
|
188
|
+
**Built-ins always win name collisions**, so a plugin can never silently shadow a built-in
|
|
189
|
+
name. If nothing matches, you get a `RegistryError` listing the known names; a selected
|
|
190
|
+
backend whose extra is missing raises `MissingExtraError` (from the gate in step 2).
|
|
191
|
+
|
|
192
|
+
## PR expectations
|
|
193
|
+
|
|
194
|
+
Before you open a PR:
|
|
195
|
+
|
|
196
|
+
- **Gates green.** `ruff check src tests`, `ruff format --check src tests`, `mypy src/indx`,
|
|
197
|
+
and `pytest -q` all pass (or `nox -s lint typecheck tests`).
|
|
198
|
+
- **Tests added.** New behavior ships with tests. Backends get unit tests; deterministic
|
|
199
|
+
output paths get golden-file coverage.
|
|
200
|
+
- **Determinism respected.** No new nondeterminism in serialized output — sort before
|
|
201
|
+
assigning ids, thread the `seed`, and update golden fixtures deliberately
|
|
202
|
+
(`nox -s record-fixtures`), never by accident.
|
|
203
|
+
- **Constraints honored.** No heavy import at module top level; no bare `ValueError`; no
|
|
204
|
+
`print()` outside the CLI layer; the offline core stays reachable.
|
|
205
|
+
|
|
206
|
+
Thanks again — clear, well-tested, deterministic contributions keep indx portable for
|
|
207
|
+
everyone.
|
indx-0.0.1/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 indx contributors
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
indx-0.0.1/NOTICE
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
indx
|
|
2
|
+
Copyright 2026 indx contributors
|
|
3
|
+
|
|
4
|
+
This product includes software developed by the indx contributors.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
you may not use this file except in compliance with the License.
|
|
8
|
+
You may obtain a copy of the License at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
See the License for the specific language governing permissions and
|
|
16
|
+
limitations under the License.
|