Skip to main content

LlamaIndex reader for the .cv open file format.

Project description

llama-index-readers-cvfile

LlamaIndex reader for the .cv open file format.

A .cv file is a PDF/A-3u file carrying a Markdown copy of the same content (plus optional HTML and JSON Resume) as PDF Associated Files. Instead of OCR ing the PDF, this reader pulls the embedded text payloads directly.

Install

pip install llama-index-readers-cvfile

Use

from pathlib import Path
from llama_index.readers.cvfile import CVFileReader

reader = CVFileReader()
docs = reader.load_data(file=Path("resume.cv"))

for doc in docs:
    print(doc.metadata["payload"], doc.metadata["mime_type"], len(doc.text))

You get one Document per textual payload found in the file. The Markdown copy (typically resume.md) is the one flagged with metadata["primary"] = True.

Metadata fields

Key Description
source Absolute path to the loaded file
file_name Basename of the source file
payload Name of the embedded file (e.g. resume.md)
mime_type MIME of the payload (text/markdown, text/html, application/json)
relationship PDF Associated Files relationship (Alternative for primary alternates)
language BCP 47 language tag for this payload
primary True for the payload declared as primary in the file's XMP metadata
cv_version Version of the .cv spec the file conforms to
cv_generator Tool that produced the file, if recorded

License

Apache-2.0.

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

llama_index_readers_cvfile-0.2.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

llama_index_readers_cvfile-0.2.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_readers_cvfile-0.2.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_cvfile-0.2.0.tar.gz
Algorithm Hash digest
SHA256 32cae821118922f128143d311e52234894ed2b13f003f9e30c154671ca687cb4
MD5 3dcf5d94ebce1e85f41f736f44d05299
BLAKE2b-256 616fe0aeae14c7e6154fd0cc7afbc4d8725ac1a54c1b2a5f33209039aef33ae8

See more details on using hashes here.

Provenance

The following attestation bundles were made for llama_index_readers_cvfile-0.2.0.tar.gz:

Publisher: publish-llama-index-readers-cvfile.yml on cvfile/cv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file llama_index_readers_cvfile-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_cvfile-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f37c189e9d12ebd8fec39c13283f3636e52c0c648bf98384614eb0175a2368c0
MD5 993d547a055efdc0ca00748105496f50
BLAKE2b-256 97e7f28f988e451136834ab57f2176fb6c5bab55219e8885d664939e8cfe79cd

See more details on using hashes here.

Provenance

The following attestation bundles were made for llama_index_readers_cvfile-0.2.0-py3-none-any.whl:

Publisher: publish-llama-index-readers-cvfile.yml on cvfile/cv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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