Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langchain_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.

langchain_cvfile-0.1.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

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

Hashes for langchain_cvfile-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e639c106ae9b1ebe62b79f8c59f5d3175b3f0367dee96715c8f2ab560078fea6
MD5 2f1187f777a6701804f15173f2a3fb1a
BLAKE2b-256 37fc13296972513f71c6522554332cb93f3440fd81de01bf7e14f68b1ee329b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_cvfile-0.1.0.tar.gz:

Publisher: publish-langchain-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 langchain_cvfile-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_cvfile-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad4e30bf3c9cf48caf58b7bd4f4cf9e012b3720d3c229a9f1ad28349006ce963
MD5 78f9c51a3aca1896b1a1ea3a21f32ca3
BLAKE2b-256 c291dcafe8f056e986b906614e274109e4411f4c4695e8a8b7011bac2baee5e9

See more details on using hashes here.

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

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