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.2.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.2-py3-none-any.whl (2.6 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: import_kb-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 3bbbe64c29ae6fc34ffbde65da22986f1b61abf1a4ca1a2d85676699552c3f3f
MD5 8a0ea7bff85378140001c3836b96ad37
BLAKE2b-256 648346f411f5311f52514737631ea8c0733256713284b39766def2136118fe96

See more details on using hashes here.

File details

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

File metadata

  • Download URL: import_kb-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 449ee5aa3b6b5eeb217570b7e26773f47612d4131a26cd09cd23f60aad7b1e04
MD5 8d48fe54c75b7c39b2187f0548416dee
BLAKE2b-256 6cbf05759da43f4902f637bbec9e04cfb7a576e9280df1b8f987864627fcf5c9

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