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
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
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 llama_index_readers_cvfile-0.1.0.tar.gz.
File metadata
- Download URL: llama_index_readers_cvfile-0.1.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94b9f35fa8e4ff0179d55367ef39442a01b65cee30226525628213c0afde939f
|
|
| MD5 |
f041db848807ca875e1f91cff25a3d0d
|
|
| BLAKE2b-256 |
285fddefe821ef3787bd663ec8b3058feae98af0590de28313e66bf26283472c
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llama_index_readers_cvfile-0.1.0.tar.gz -
Subject digest:
94b9f35fa8e4ff0179d55367ef39442a01b65cee30226525628213c0afde939f - Sigstore transparency entry: 1519256656
- Sigstore integration time:
-
Permalink:
cvfile/cv@eeda1f8fa53388538d0d97c1a81cf578a79c089b -
Branch / Tag:
refs/tags/llama-index-readers-cvfile/v0.1.0 - Owner: https://github.com/cvfile
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-llama-index-readers-cvfile.yml@eeda1f8fa53388538d0d97c1a81cf578a79c089b -
Trigger Event:
push
-
Statement type:
File details
Details for the file llama_index_readers_cvfile-0.1.0-py3-none-any.whl.
File metadata
- Download URL: llama_index_readers_cvfile-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8420547304b51e84da0b2543930317b5705382545b1d5897f00d699d7831cbe
|
|
| MD5 |
8588d581d91f09a0f4d15a35c0eca9fa
|
|
| BLAKE2b-256 |
c9439ffc63e98d563cdaf282b04b29d527461acf2d309f2f0fb92ade6512fca4
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llama_index_readers_cvfile-0.1.0-py3-none-any.whl -
Subject digest:
b8420547304b51e84da0b2543930317b5705382545b1d5897f00d699d7831cbe - Sigstore transparency entry: 1519256662
- Sigstore integration time:
-
Permalink:
cvfile/cv@eeda1f8fa53388538d0d97c1a81cf578a79c089b -
Branch / Tag:
refs/tags/llama-index-readers-cvfile/v0.1.0 - Owner: https://github.com/cvfile
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-llama-index-readers-cvfile.yml@eeda1f8fa53388538d0d97c1a81cf578a79c089b -
Trigger Event:
push
-
Statement type: