Skip to main content

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
  • 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

import_kb-0.1.1.tar.gz (2.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

import_kb-0.1.1-py3-none-any.whl (2.6 MB view details)

Uploaded Python 3

File details

Details for the file import_kb-0.1.1.tar.gz.

File metadata

  • Download URL: import_kb-0.1.1.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

Hashes for import_kb-0.1.1.tar.gz
Algorithm Hash digest
SHA256 50f3c5edeb2f3a911686da26604b90e6b1c709487cf1b26a6b6e876e0569d700
MD5 beceb5df9a4503929a9878826e516386
BLAKE2b-256 ee41946a6f0790335154d8bb91c5dff3c03e86d8e1e698ec986781b25fb8fe3c

See more details on using hashes here.

File details

Details for the file import_kb-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: import_kb-0.1.1-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

Hashes for import_kb-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d6a28869826c73d803dbce854ba645559be1dd3f29979f64b01196f2295e08ec
MD5 98db75c4873218cbea709d3758327bf0
BLAKE2b-256 90c33623549e5586a93533eb1f43c9a82fdb0bf8f7b48ec5f6ccb7e397126b42

See more details on using hashes here.

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