Skip to main content

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 ipy-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 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_user your messages
  • #| chat_assistant the 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

ipy_yasi-0.1.0.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ipy_yasi-0.1.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file ipy_yasi-0.1.0.tar.gz.

File metadata

  • Download URL: ipy_yasi-0.1.0.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for ipy_yasi-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f388df3fa6cb9664d5c91fa38691606bf63317164adeff93859a8c06bc28aeeb
MD5 7e0ad4888d1aa1c9fe51451bdc126778
BLAKE2b-256 e8d5c4297b836a82b8142eb6363c481983bee86baefffba3a8c0bbb41df3bfc2

See more details on using hashes here.

File details

Details for the file ipy_yasi-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ipy_yasi-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for ipy_yasi-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6bafc2e6c68cb4a91c38e8f8bd4cfa7883a3b528492e3a8febcede9145b9e68d
MD5 e73186e4c973d3b028ca1a2a3982ebed
BLAKE2b-256 b6c02e79478f39b965a73f633af417f2b18551ea6c502d31d618b302f2de61f1

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