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.1.0.tar.gz (3.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.1.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llama_index_readers_cvfile-0.1.0.tar.gz
Algorithm Hash digest
SHA256 94b9f35fa8e4ff0179d55367ef39442a01b65cee30226525628213c0afde939f
MD5 f041db848807ca875e1f91cff25a3d0d
BLAKE2b-256 285fddefe821ef3787bd663ec8b3058feae98af0590de28313e66bf26283472c

See more details on using hashes here.

Provenance

The following attestation bundles were made for llama_index_readers_cvfile-0.1.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.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_cvfile-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b8420547304b51e84da0b2543930317b5705382545b1d5897f00d699d7831cbe
MD5 8588d581d91f09a0f4d15a35c0eca9fa
BLAKE2b-256 c9439ffc63e98d563cdaf282b04b29d527461acf2d309f2f0fb92ade6512fca4

See more details on using hashes here.

Provenance

The following attestation bundles were made for llama_index_readers_cvfile-0.1.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