AI library used for document processing and LLM calls.
Project description
nubix-ai
AI library used for document processing and LLM calls.
Installation
pip install nubix-ai
Usage
from pydantic import BaseModel
from nubix_ai import NubixAI
# Initialize the client
client = NubixAI(
docling_api_key="your-docling-api-key",
openai_api_key="your-openai-api-key"
)
# Process a document
markdown, metadata = client.call_docling_process_file("document.pdf")
# Extract structured data with LLM
class MySchema(BaseModel):
field1: str
field2: int
result = client.extract_with_llm(
markdown_text=markdown,
prompt_input="Extract the following information:",
PydanticInput=MySchema
)
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nubix_ai-1.0.0.tar.gz
(2.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nubix_ai-1.0.0.tar.gz.
File metadata
- Download URL: nubix_ai-1.0.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c55fcfc35c5a3ac755da462e6507ea99a84de7db929547ea0d54c8b90c149052
|
|
| MD5 |
b2edc28ba0a5548b681b9f379cadb582
|
|
| BLAKE2b-256 |
d39f6ac6f98ae83dca4a75b72176399246514b99218e4bd40989425c85ea1593
|
File details
Details for the file nubix_ai-1.0.0-py3-none-any.whl.
File metadata
- Download URL: nubix_ai-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd3fc77135a9b9856d2f36d9e01939622d87dceabce8e9a63574393eeb533946
|
|
| MD5 |
32f41578f8ab6ea2e5e3654951ae039f
|
|
| BLAKE2b-256 |
8f6dc935e4b1c17ae89a67915a38e935fc25ce1bbd580b650244e3f4661a62c6
|