django-pyhub-rag 0.5.3
pip install django-pyhub-rag==0.5.3
Newer version available (1.2.2)
Released:
Django app library for RAG integration
Navigation
Verified details
These details have been verified by PyPIMaintainers
Meta
- Author: Chinseok Lee
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Requires: Python >=3.10
-
Provides-Extra:
build
,dev
,postgres
,sqlite
,test
Classifiers
- Development Status
- Framework
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Project description
django-pyhub-rag
Note: 이 라이브러리는 현재 베타버전입니다. 기능이 변경될 수 있으며, 피드백을 환영합니다.
소개
django-pyhub-rag
는 장고 프로젝트에서 RAG (Retrieval Augmented Generation) 기능을 쉽게 구현할 수 있도록 도와주는 라이브러리입니다.
PostgreSQL 데이터베이스의 pgvector
확장을 활용하여 유사도 기반 조회를 지원합니다.
- 참고: pgvector 설치가이드
주요 기능
sqlite-vec
와 pgvector
라이브러리를 지원합니다.
SQLiteVectorDocument
모델 상속을 통해sqlite-vec
기반으로 텍스트 문서와 메타데이터, 임베딩 벡터를 저장하고, 유사 문서를 검색할 수 있습니다.PGVectorDocument
모델 상속을 통해pgvector
기반으로 텍스트 문서와 메타데이터, 임베딩 벡터를 저장하고, 유사 문서를 검색할 수 있습니다.
from pyhub.rag.models.sqlite import SQLiteVectorDocument
class TaxlawDocument(SQLiteVectorDocument):
pass
설치 방법
- 라이브러리 설치
sqlite-vec
확장을 사용하실 경우, 아래 라이브러리를 설치해주세요.
python -m pip install django-pyhub-rag sqlite-vec
pgvector
확장을 사용하실 경우, 아래 라이브러리를 설치해주세요.
python -m pip install django-pyhub-rag psycopg2-binary pgvector
INSTALLED_APPS
리스트에 추가:
INSTALLED_APPS = [
# ...
"pyhub.rag",
]
- 모델 상속 및 마이그레이션
라이선스
이 프로젝트는 MIT 라이선스 하에 배포됩니다.
Project details
Verified details
These details have been verified by PyPIMaintainers
Meta
- Author: Chinseok Lee
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Requires: Python >=3.10
-
Provides-Extra:
build
,dev
,postgres
,sqlite
,test
Classifiers
- Development Status
- Framework
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file django_pyhub_rag-0.5.3-py3-none-any.whl
.
File metadata
- Download URL: django_pyhub_rag-0.5.3-py3-none-any.whl
- Upload date:
- Size: 24.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b85bb709e28bee8c5f37a84a0a78e773e9140e2a47bdc4ef3d9faae62dec9271 |
|
MD5 | 7a0a8e13f81668fdcc96c5f4278b2901 |
|
BLAKE2b-256 | a2c553a8517bf69c202283a6d7184b65479d5a0d8d84e17318b3631c4a6c8456 |