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.0.tar.gz (5.7 kB 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.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: import_kb-0.1.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • 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.0.tar.gz
Algorithm Hash digest
SHA256 cf3df605cf4ac22b35a6fa8a5f0dc549500999101cf96ae3fd077ab28d6b6496
MD5 3813f9eec7d981378e2d823df5936961
BLAKE2b-256 84851534fae7b268913c0bde575a89a0a3e2fe91a6fdef42cba25eaa3f11d974

See more details on using hashes here.

File details

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

File metadata

  • Download URL: import_kb-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9062df3148c63bf48281386e15989a1e951cf9de21cc6729fe3bd4eeb0c259ea
MD5 88f6e05b93ac6ca7e228076b4d14ba25
BLAKE2b-256 e7ce1f8088dc96b72187e5b6fc26776be7ec8bbceb275016ef123dfe545c648b

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