Skip to main content

langchain-akasicdb

langchain-akasicdb 는 LangChain 프레임워크에서 AkasicDB를 사용할 수 있게 해 주는 integration입니다.

Requirements

Environment Prerequisites (For Local Testing/Examples):

  • PostgreSQL: A running PostgreSQL with the akasicdb extension enabled.
  • OpenAI API Key: Required for running RAG examples.

Installation

pip install --extra-index-url https://test.pypi.org/simple/ "langchain-akasicdb"==0.6.0

Quick Start

from langchain_akasicdb import AkasicDBVector

vectorstore = AkasicDBVector(
    embedding=my_embedding,
    dimension=1536,
    db_url="postgresql+psycopg://user:pass@localhost:5432/mydb",
    collection_name="my_collection",
    new_table=True,
)

Backward Compatibility

The previous langchain_vectoron package is still available as a deprecation shim. Existing code using VectorOnVectorStore will continue to work but will emit a DeprecationWarning:

# Still works, but deprecated:
from langchain_vectoron import VectorOnVectorStore

# Migrate to:
from langchain_akasicdb import AkasicDBVector

Examples

Please see the Jupyter Notebook example.

Run tests

Prerequisite: Set up PostgreSQL Environment:

  1. Ensure Extension is Active: Connect to your running PostgreSQL instance and execute the extension creation command.
    psql -h localhost -p 5432 -U postgres -d akasicdb
    
    -- Execute inside psql:
    CREATE EXTENSION IF NOT EXISTS akasicdb;
    \q
    
  2. Set DB Environment Variables: Export connection parameters so tests and examples can connect to the database.
    export POSTGRES_HOST=localhost
    export POSTGRES_USER=postgres
    export POSTGRES_PASSWORD=akasicdb
    export POSTGRES_PORT=5432
    

Install dependencies for tests:

poetry install --with test

Run unit tests:

# run unit tests without network access
poetry run pytest --disable-socket --allow-unix-socket --asyncio-mode=auto tests/unit_tests

Run tests with coverage report:

poetry run pytest --cov=langchain_akasicdb --cov-report=term-missing

To generate an HTML report:

poetry run pytest --cov=langchain_akasicdb --cov-report=html

Metadata

Release files for langchain-akasicdb 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langchain-akasicdb 1.0.0
File Size Uploaded Provenance Actions
langchain_akasicdb-1.0.0.tar.gz 14.3 kB Without provenance Details for langchain_akasicdb-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for langchain-akasicdb 1.0.0
File Interpreter ABI Platform Actions
langchain_akasicdb-1.0.0-py3-none-any.whl Python 3 none any Details for langchain_akasicdb-1.0.0-py3-none-any.whl

Total release size: 30.5 kB

Release files / langchain_akasicdb-1.0.0.tar.gz

Download URL langchain_akasicdb-1.0.0.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a66ab12d91ebe87b831e67f616cee86b6dace957155cf852e236536f502d37ae
BLAKE2b-256 checksum
How to use checksums
d0a800318fa89d9ad167e9b9ceb34e9ac2a627e39b9b8486089d1cd341c5b364
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.0rc1

Release files / langchain_akasicdb-1.0.0-py3-none-any.whl

Download URL langchain_akasicdb-1.0.0-py3-none-any.whl
Size 16.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8a4b4bc566ef5fe845c74d59da98d90db866c5d602ecb436ebc963ade84f285a
BLAKE2b-256 checksum
How to use checksums
880c9da24a465357b21d719d3b92a9cb3fed45a2cb4eeb12981b6e93cdeeb9f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.0rc1

Security for langchain-akasicdb 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page