A CLI tool over the top 1218 Python libraries.
Used for library q/a & code generation with all available OpenAI models
Website
|
Data Visualizer
|
PyPI
|
@fleet_ai
fleet-context.mp4
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
If you have an existing package that already uses the keyword context
, you can also activate Fleet Context by running:
fleet-context
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. View a list of all supported libraries on our website.
context -l langchain pydantic openai
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-4-1106-preview
Local model support is powered by LM Studio. To use local models, you can use --local
or -n
:
context --local
You need to download your local model through LM Studio. To do that:
- Download LM Studio. You can find the download link here: https://lmstudio.ai
- Open LM Studio and download your model of choice.
- Click the ↔ icon on the very left sidebar
- Select your model and click "Start Server"
The context window is defaulted to 3000. You can change this by using --context_window
or -w
:
context --local --context_window 4096
You can control the number of retrieved chunks by using -k
or --k_value
(defaulted to 15), and you can toggle whether the model cites its source by using -c
or --cite_sources
(defaults to true).
context -k 25 -c false
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
.
![](https://private-user-images.githubusercontent.com/44193474/280906763-1ee13497-adbe-4f80-8782-3d4172a7d956.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU3MzM0NzgsIm5iZiI6MTcyNTczMzE3OCwicGF0aCI6Ii80NDE5MzQ3NC8yODA5MDY3NjMtMWVlMTM0OTctYWRiZS00ZjgwLTg3ODItM2Q0MTcyYTdkOTU2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA3VDE4MTkzOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY3MDZmZDE5NGU0YWYxNDYxYzAyOGNjMGU0ZTI4ZTkwODFkMjljZGExZjAyNWI0MzBjY2Q2NWJjZmU4ZWVkNTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.AbO8fJ1Wdl_FStC9AlVV9WxLJc4Fx6Pc-NZS5CCOLAM)
Check out our visualized data here.
You can download all embeddings here.
![Screenshot 2023-11-06 at 10 01 22 PM](https://private-user-images.githubusercontent.com/44193474/280906636-c7aeca8a-5a62-4655-a2c6-4d16846b330d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU3MzM0NzgsIm5iZiI6MTcyNTczMzE3OCwicGF0aCI6Ii80NDE5MzQ3NC8yODA5MDY2MzYtYzdhZWNhOGEtNWE2Mi00NjU1LWEyYzYtNGQxNjg0NmIzMzBkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA3VDE4MTkzOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM1NGE1Y2M3ZjVlODI3YjI1ODgxMmNmMDAyMjkzYzEwNTllODBlNWRmMTU1YjVkZTdhMTNlY2MxMmVhZDc4YzYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.I4emY2WwWokOsW6RdBrovfVw3Q04n_HbF7XbOHiXJlY)