A package for importing knowledge and embedding text.
Project description
import-knowledge-package/import-knowledge-package/README.md
Import Knowledge Package
This project provides a Python package for importing and processing knowledge from specified JSONL and curriculum files. It utilizes OpenAI's embedding model to generate embeddings for the knowledge data, which can then be stored in a Chroma database for later retrieval and use.
Project Structure
import-knowledge-package
├── KB
│ ├── curriculum.metta
│ ├── max_distilled_knowledge.jsonl
│ └── oma_distilled_knowledge.jsonl
├── src
│ └── import_knowledge
│ ├── __init__.py
│ └── import_knowledge.py
├── pyproject.toml
├── setup.py
├── MANIFEST.in
└── README.md
KB Directory
- curriculum.metta: Contains the curriculum data used for knowledge transfer.
- max_distilled_knowledge.jsonl: Contains distilled knowledge data related to "max".
- oma_distilled_knowledge.jsonl: Contains distilled knowledge data related to "oma".
Source Directory
- import_knowledge/init.py: Marks the directory as a Python package.
- import_knowledge.py: Contains the main logic for importing knowledge, including functions for embedding text and processing knowledge files.
Installation
To install the package, clone the repository and run:
pip install .
Usage
After installation, you can use the package to import knowledge by running the import_knowledge.py script. Ensure that your environment is set up with the necessary API keys and dependencies.
Dependencies
- OpenAI API
- sentence-transformers
- ChromaDB
- dotenv
Make sure to install the required dependencies listed in setup.py or pyproject.toml.
License
This project is licensed under the MIT License. See the LICENSE file for more details.
Project details
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file import_kb-0.1.3.tar.gz.
File metadata
- Download URL: import_kb-0.1.3.tar.gz
- Upload date:
- Size: 2.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
691bc0de19b0b70811644515895cce52dd11a6eb62fd08da7c2530fc77aee898
|
|
| MD5 |
471bcd7eafdd456af43ce4284164c4ff
|
|
| BLAKE2b-256 |
f03c73809cc7183095c6c21786802c7693983a2e784a4dd7af569ce0e173fc99
|
File details
Details for the file import_kb-0.1.3-py3-none-any.whl.
File metadata
- Download URL: import_kb-0.1.3-py3-none-any.whl
- Upload date:
- Size: 2.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45046174a1bc6b826233adc279bf85ac0a192c0bcfffcaace09527ac4e79ae72
|
|
| MD5 |
d83d1e85654872ee1e2beddec5a6fcb0
|
|
| BLAKE2b-256 |
ca07a370896b48bbdeb66e80c7dfe9ba3f017a81a1da0ca9b5f5fd57e6650198
|