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.2.0.tar.gz (5.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.2.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: langchain_cvfile-0.2.0.tar.gz
  • Upload date:
  • Size: 5.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.2.0.tar.gz
Algorithm Hash digest
SHA256 7785c5ab3121e9565224eb73bbf89ecfb3ba3d1a4ea5f3b5ed6b2651c97b77d5
MD5 10b857e67cde84fe37d08f6bafacf224
BLAKE2b-256 a6b977cdacb76f57f21809d7f08db9b24b12303620661d543a05e1e81bef37e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_cvfile-0.2.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.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_cvfile-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 673119b137bc1b4c223a474bd165d40e4e4c23a41fd74f1bf62e68bb1720aaf5
MD5 0ab6d0f8918ae46f37bc754e75830b50
BLAKE2b-256 f8b8c5172cf1465d07949649c18ee3c279e0eb518662d71df21975fbd739b40a

See more details on using hashes here.

Provenance

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