/opensource

Main repo for tracking open source projects, issues, conversations, and links to each open source project.

MIT LicenseMIT

Open Source by Pieces (OSP)

A great place to get started is our Discord Channel where all the community members communicate daily.

Welcome to our Open Source Hub, where you can build your own Pieces Copilot, use your own Local Large Language Models(LLLMs), reference your own context in Copilot Chats, and save code using an incredibly flexible database all together with the community.

Our goal is to bring the power of offline Contextual Copilots even closer to your workflow, and have provided Pieces OS as a resource for you to use in any application you are developing on or a platform via our SDKs.

Contribute to a Repo, open an issue or visit our general documentation and learn about Pieces to help add to the conversation on how we can apply the power of Pieces OS (via our SDKs) in the products and locations we currently work.

Guides

Follow along with these blogs and tutorials to create your own copilot locally on device.

Links
Copilot Overview (Great starting point)
How to Build Your Own Copilot
How to Download Local LLM's + Use them with the Copilot
Adding Custom Context to Your Question
Build a Copilot with Microsofts Phi-2

Documentation

Use these documentation files to understand how Pieces Client works.

Language Link
🗄 Typescript To Documentation
🗄 Python To Documentation
🗄 Dart To Documentation
🗄 Kotlin To Documentation

SDKs

Build on top of Pieces OS with this SDK and create your own Contextual Copilot. We recommend downloading the package via NPM/Maven/PyPI where you can find directions on how to use the APIs inside of this package.

This package is easy to add to your project and gives you immediate access to all features in Pieces OS. You can always demo all of the available functionality that is present for you to use by downloading Pieces for Developers Desktop App and Pieces OS.

SDK Package
📦 Pieces OS Client SDK for Typescript Deployed on NPM
📦 Pieces OS Client SDK for Python Python Package Deployed on pypi
📦 [WIP] Pieces OS Client SDK for Dart (not deployed)
📦 Pieces OS Client SDK for Kotlin Deployed on Maven Central

Playgrounds

These are environments for building and understanding the SDKs wholisticaly, using all of the available features in the client and see real world examples similar to how we have build our products.

Project Description
🛝 Typescript Example Playground Using the client with NPM to develop on in a web environment. Great HTML, CSS, and JS examples of different functionality.

Simple Starter Projects

These examples are very focused, and show a specific feature/set of endpoints off. These are great for starting a project around, and can be useful for finding less cluttered examples that have fewer pending changes.

Project Description Links
🍦 Simple Copilot Starter See how you can use the Copilot by itself using a few endpoints and a WebSocket. Follow this here to see how you can stream in the conversation with your copilot. There are a few blogs written/being written to assist and guide you as you explore the Pieces Copilot. (Blog + Tutorial) Build Your Own Copilot in 10 Minutes

Projects

Here are some community projects that are currently underway and are always available for contribution or questions:

Project Description
🗂️ Python CLI Agent A comprehensive command-line interface (CLI) tool designed to interact seamlessly with Pieces OS. It provides a range of functionalities such as asset management, application interaction, and integration with various Pieces OS features.
🗂️ Streamlit x Pieces The Pieces Copilot Streamlit Bot is an interactive chatbot application built using Streamlit, designed to provide users with a seamless interface to ask questions and receive answers in real-time and powered by Pieces Client
🗂️ Readme Generator An open-source community project built using Streamlit and Pieces Python SDK, designed to simplify the process of creating a professional and informative README.md file for your projects.
🗂️ Svelte x Pieces The Svelte x Pieces project is a quick way to setup a copilot chat and make it highly readable on the front-end, using Sveltekit's built-in methods to present your Pieces chat history within a lightweight, easy-to-build interface.