Inspiration

This project was inspired by the need to create a simple and effective demonstration of how to use the Pieces Copilot SDK in Python as part of the GHW AI/ML Challenge in August 2024.

What it does

This project creates a conversation with the Pieces Copilot SDK, asks a predefined question to the language model (LLM), and prints the generated response. It showcases the basic functionalities of the SDK, including initializing the client, creating a conversation, and interacting with the language model.

How we built it

We built this project using Python and the pieces_copilot_sdk library. The main steps involved were:

  1. Initializing the PiecesClient with the base URL of the API.
  2. Creating a new conversation with a predefined name and first message. 3.Checking if the conversation was created successfully and printing the response.
  3. Asking a predefined question to the language model and printing the response.

Challenges we ran into

The SDK wrapper URL was not publicly available. Had to extract it from the GHW video..lol

Accomplishments that we're proud of

Was able to interact with local Pieces OS instance..Didnt imagine that would be possible..

What we learned

Pieces OS is a workflow /LLM service which we can leverage to create custom solutions for our PC

What's next for Pieces Hello World

Going for the Coding Challenege 4...Chat App

Built With

Share this project:

Updates