Skip to main content

ingest-anything: from data to vector database effortlessly

Project description

ingest-everything

From data to vector database effortlessly

ingest-anything is a python package aimed at providing a smooth solution to ingest non-PDF files into vector databases, given that most ingestion pipelines are focused on PDF/markdown files. Using chonkie, PdfItDown, Llamaindex, Sentence Transformers embeddings and Qdrant, ingest-anything proves a versatile package that automates files ingestion.

Installation and usage

ingest-anything can be installed using pip in the following way:

pip install ingest-anything
# or, for a faster installation
uv pip install ingest-anything

And is available in your python scripts:

  • You can initialize it:
from ingest_anything.ingestion import IngestAnything, QdrantClient, AsyncQdrantClient

coll_name = "Flowers"
client = QdrantClient(api_key=os.getenv("qdrant_api_key"), url=os.getenv("qdrant_url"))
aclient = AsyncQdrantClient(api_key=os.getenv("qdrant_api_key"), url=os.getenv("qdrant_url"))
ingestor = IngestAnything(qdrant_client=client, async_qdrant_client=aclient, collection_name=coll_name, hybrid_search=True)
  • And ingest your files:
# with a list of files
ingestor.ingest(chunker="late", files_or_dir=['tests/data/test.docx', 'tests/data/test0.png', 'tests/data/test1.csv', 'tests/data/test2.json', 'tests/data/test3.md', 'tests/data/test4.xml', 'tests/data/test5.zip'], embedding_model="sentence-transformers/all-MiniLM-L6-v2")
# with a directory
ingestor.ingest(chunker="token", files_or_dir="tests/data", tokenizer="gpt2", embedding_model="sentence-transformers/all-MiniLM-L6-v2")

You can find a complete reference for the package in REFERENCE.md

Contributing

Contributions are always welcome!

Find contribution guidelines at CONTRIBUTING.md

License and Funding

This project is open-source and is provided under an MIT License.

If you found it useful, please consider funding it.

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

ingest_anything-0.0.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

ingest_anything-0.0.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file ingest_anything-0.0.0.tar.gz.

File metadata

  • Download URL: ingest_anything-0.0.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for ingest_anything-0.0.0.tar.gz
Algorithm Hash digest
SHA256 ffcee65d882a017a8d3d4b61607096e845d314759cc22338440a32c5785d46ce
MD5 a27090668dae91fc7ce8321a419d00cf
BLAKE2b-256 b0116848aa9eb7c13eee8b2a36c1fce43e72b88a7bf7898c83485a58cb7fd05a

See more details on using hashes here.

File details

Details for the file ingest_anything-0.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ingest_anything-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e49dcf699ec553c20538bd7e4902007d7a5c69b1efc7006d2ef2b19436d40c4e
MD5 a61abb30d5c1dad4e38f0aefce5ebdf3
BLAKE2b-256 d737d4f574b35d217e8d0fe553d84db93fe6a041e522e98ba0830e29897c8c3d

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