Skip to main content

cuboxGPT

Use GPT to help users quickly search/chat with your large cubox dataset.

Use

Install the package.

pip install cuboxGPT

Export the cubox dataset as html file. export

Call the command line tool

# set openai api key
EXPORT OPENAI_API_KEY=<your openai api key>

# import all cubox bookmarks and downald all web contents.
# Note that the cli will output links that are failed to download and links that have not enough contents.
cuboxgpt  import-data <cubox_export.html file location>

# Init the vector database. Put all downloaded web contents to the vector database and generate embeddings. Save the database in db/ folder.
cuboxgpt init-database

# chat/seach with the dataset
cuboxgpt search <query>

Development

venv ./venv
source ./venv/bin/activate
pip install --editable .

cuboxGPT.py has all comand line tools implementation.

chatFromDB.py reads from the database and implement the query function.

webPraser.py takes responsibility to parse the html file and download the web contents.

db.py generate embeddings and save web contents to the database.

pyproject.toml contains ruff lint configuration.

Roadmap

Goal: Enhance the search experience and easily keep datasets up to date.

  • Better CRUD on database. Users can update/delete single ducoments in the database.
  • Seach document with custom filter on metadata.
  • Better parsing rule for certain websites like Twitter, Youtube with Chinese characters, Weixin
  • Better updating experience if user input a new cubox export file.
  • Pagination for search results.
  • Analyze user's query to better hit keywords.
  • For links failed to download, retry with Seleum
  • Support multi-threading for downloading web contents.
  • Better title by supporting open graph meta tags

Metadata

Release files for cuboxgpt 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cuboxgpt 0.1.1
File Size Uploaded
cuboxgpt-0.1.1.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cuboxgpt 0.1.1
File Interpreter ABI Platform
cuboxgpt-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 12.1 kB

Release files / cuboxgpt-0.1.1.tar.gz

Download URL cuboxgpt-0.1.1.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c089e17a7198a6a16be116f6b5b2747a3a6660356ed4b6b20efb85cbf771c8d0
BLAKE2b-256 checksum
How to use checksums
a4a36c8cf34f672631169324ef67dbed4e6a55fc0fadb42f9bcf1f5457c3c6db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / cuboxgpt-0.1.1-py3-none-any.whl

Download URL cuboxgpt-0.1.1-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9d2380c49754c13c6ba6849e0a8203328f7aca9d574be4768b5861634cb19bf
BLAKE2b-256 checksum
How to use checksums
cf8cbf1892f6d515bee1846bbb751ec71bd054cdd078979dc4a6c5b1f749aa1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page