LangChain document loader for the .cv open file format.
Project description
langchain-cvfile
LangChain document loader 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 loader pulls the embedded text payloads directly.
Install
pip install langchain-cvfile
Use
from langchain_cvfile import CVFileLoader
loader = CVFileLoader("resume.cv")
docs = loader.load()
for doc in docs:
print(doc.metadata["payload"], doc.metadata["mime_type"], len(doc.page_content))
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 |
The file path you passed to the loader |
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 langchain_cvfile-0.1.0.tar.gz.
File metadata
- Download URL: langchain_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 |
e639c106ae9b1ebe62b79f8c59f5d3175b3f0367dee96715c8f2ab560078fea6
|
|
| MD5 |
2f1187f777a6701804f15173f2a3fb1a
|
|
| BLAKE2b-256 |
37fc13296972513f71c6522554332cb93f3440fd81de01bf7e14f68b1ee329b1
|
Provenance
The following attestation bundles were made for langchain_cvfile-0.1.0.tar.gz:
Publisher:
publish-langchain-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:
langchain_cvfile-0.1.0.tar.gz -
Subject digest:
e639c106ae9b1ebe62b79f8c59f5d3175b3f0367dee96715c8f2ab560078fea6 - Sigstore transparency entry: 1519257049
- Sigstore integration time:
-
Permalink:
cvfile/cv@eeda1f8fa53388538d0d97c1a81cf578a79c089b -
Branch / Tag:
refs/tags/langchain-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-langchain-cvfile.yml@eeda1f8fa53388538d0d97c1a81cf578a79c089b -
Trigger Event:
push
-
Statement type:
File details
Details for the file langchain_cvfile-0.1.0-py3-none-any.whl.
File metadata
- Download URL: langchain_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 |
ad4e30bf3c9cf48caf58b7bd4f4cf9e012b3720d3c229a9f1ad28349006ce963
|
|
| MD5 |
78f9c51a3aca1896b1a1ea3a21f32ca3
|
|
| BLAKE2b-256 |
c291dcafe8f056e986b906614e274109e4411f4c4695e8a8b7011bac2baee5e9
|
Provenance
The following attestation bundles were made for langchain_cvfile-0.1.0-py3-none-any.whl:
Publisher:
publish-langchain-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:
langchain_cvfile-0.1.0-py3-none-any.whl -
Subject digest:
ad4e30bf3c9cf48caf58b7bd4f4cf9e012b3720d3c229a9f1ad28349006ce963 - Sigstore transparency entry: 1519257058
- Sigstore integration time:
-
Permalink:
cvfile/cv@eeda1f8fa53388538d0d97c1a81cf578a79c089b -
Branch / Tag:
refs/tags/langchain-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-langchain-cvfile.yml@eeda1f8fa53388538d0d97c1a81cf578a79c089b -
Trigger Event:
push
-
Statement type: