DIY alternative to solve it from fast.ai (Yet-Another-SolveIt)
Project description
yasi
Usage
Installation
Install latest from the GitHub repository:
$ pip install git+https://github.com/Jack-Byte/yasi.git
or from pypi
$ pip install yasi
Documentation
Documentation can be found hosted on this GitHub repository’s pages. Additionally you can find package manager specific guidelines on conda and pypi respectively.
How to use
You can try it online with Binder
Import JupyterChat, set openai_base_url (only if you are not using
Openai itself), and provide your api key directly or as the env variable
OPENAI_API_KEY.
from yasi.core import JupyterChat
jc = JupyterChat(openai_base_url="https://openrouter.ai/api/v1", api_key=None)
Query Openai directly
You can use the send_query method to interacte through a code cell
directly. The response will be added as a new markdown cell in your
current notebook.
jc.send_query('Kia ora, how are you?')
Kia ora! I’m doing well, thanks for asking! It’s great to connect with you and practice some basic Maori phrases. How can I help you today?
Send Dialoge from your Notebook
JupyterChat is designed to extract messages from your current notebook and construct a dialoge.
It’s searching for markdown cells that contain the tags
#| chat_system(optional) sets the context for the conversation, providing the AI with a “hint” about the type of response expected#| chat_useryour messages#| chat_assistantthe AIs real responses, or the ones that you ingest into the dialog
and sends the dialog to the Openai API.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ipy_yasi-0.0.2.tar.gz.
File metadata
- Download URL: ipy_yasi-0.0.2.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f95eb39d7c1f7aa6285af02d0cffaa3ef9491539db38752373c790c1d6fc72e
|
|
| MD5 |
642102f13ce9ee22812d34fac1e0ff6e
|
|
| BLAKE2b-256 |
297908d1fc6ae19335da53425c5666a9fae32146f0726860b6c79e2d83f17054
|
File details
Details for the file ipy_yasi-0.0.2-py3-none-any.whl.
File metadata
- Download URL: ipy_yasi-0.0.2-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f2198b3184e5c9381ec970404d87b89393b902e0112b88f472306d57a85f544
|
|
| MD5 |
243f862bef7298833f488508fc4de675
|
|
| BLAKE2b-256 |
013d028dd08d63f3f30c5660115868ef1a3c98f180909dd79c9ae93eec070a2e
|