A chat interface over up-to-date Python library documentation.
Project description
🛩️ Fleet Context
A CLI tool over the top 1200 Python libraries.
Used for library q/a & code generation with all avaliable OpenAI models
Website | Data visualizer | PyPI
Quick Start
Install the package and run context to ask questions about the most up-to-date Python libraries. You will have to provide your OpenAI key to start a session.
pip install fleet-context
context
If you'd like to run the CLI tool locally, you can clone this repository, cd into it, then run:
pip install -e .
context
Limit libraries
You can use the -l or --libraries followed by a list of libraries to limit your session to a certain number of libraries. Defaults to all.
context -l langchain pydantic openai
Use a different OpenAI model
You can select a different OpenAI model by using -m or --model. Defaults to gpt-4. You can set your model to gpt-4-1106-preview (gpt-4-turbo), gpt-3.5-turbo, or gpt-3.5-turbo-16k.
context -m gpt-3.5-turbo
Advanced settings
You can control the number of retrieved chunks by using -k or --k_value (defaulted to 25), and you can toggle whether the model cites its source by using -c or --cite_sources (defaults to true).
context -k 10 -c false
Evaluations
Results
Sampled libraries
We saw a 37-point improvement for gpt-4 generation scores and a 34-point improvement for gpt-4-turbo generation scores amongst a randomly sampled set of 50 libraries.
We attribute this to a lack of knowledge for the most up-to-date versions of libraries for gpt-4, and a combination of relevant up-to-date information to generate with and relevance of information for gpt-4-turbo.
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
File details
Details for the file fleet-context-1.0.9.tar.gz.
File metadata
- Download URL: fleet-context-1.0.9.tar.gz
- Upload date:
- Size: 17.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/42.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/1.26.16 tqdm/4.65.0 importlib-metadata/6.8.0 keyring/23.13.1 rfc3986/1.5.0 colorama/0.4.6 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e107088c31e555327afe8cd5e482c5b1b271a8c47929bec255cc3ecd47f38fe
|
|
| MD5 |
92af644f71ce0c6eab431f780adc57b8
|
|
| BLAKE2b-256 |
23355118c92f58904458a52c6fcdf9ec9491d4f49f586e735292a6714d2a2197
|