Skip to main content

Integration package connecting ObjectBox and LangChain

Project description

langchain-objectbox

About

This package contains the ObjectBox integrations for LangChain.

Development Notes

Setup

Poetry

Should be installed isolated from rest of system and project's venv (see also https://python-poetry.org/docs/#installation)

# Debian-based Setup of poetry (should be external to venv)
apt-get install -y pipx
pipx install poetry

Ensure your $HOME/.local/bin is in $PATH.

Tox

pipx install tox

Initial Package Setup

mkdir -p libs/objectbox  # more-or-less blueprinted from other `langchain-<ext>` python projects
cd libs/objectbox
poetry init # answered some questions, added deps: langchain-core, objectbox
poetry add -G test pytest
python3 -m venv .venv
source .venv/bin/activate
poetry install
poetry add -G test langchain
  • From objectbox-langchain/libs/community, copied
    • langchain_community/vectorstores/objectbox.py to langchain_objectbox/vectorstores.py
    • tests/integration_tests/vectorstores/test_objectbox.py to tests/integration_tests/test_objectbox.py
      • Deactivated integration tests that use HuggingFace... TODO: Can we have simpler Embeddings (it wanted to download nvidia packages, can ollama be an option here?)

Initial Setup

cd libs/objectbox
poetry install
poetry run pytest

Start Developer Sessions

source .venv/bin/activate

Test

pytest

Build package

poetry build

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_objectbox-0.1.0a0.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

langchain_objectbox-0.1.0a0-py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page