Coder Social home page Coder Social logo

Discovery protocol πŸš€

About Index Network

Index is a discovery protocol that allows you to create truly personalized and autonomous discovery experiences across the web.

To achieve this, Index provides a decentralized semantic index that eliminates data fragmentation, a composable discovery protocol that allows data to be queried from multiple sources, in a user-centric manner. On top of this, it provides a real-time environment for agents that facilitates integration with algorithms and services and ensures that information acquires a fluid, social, and autonomous structure.

Note

Full documentation and additional resources are available on the Index Network documentation site β†’

Table of contents

  1. Example
  2. Components
  3. Getting started
  4. Contributing
  5. Credits
  6. Resources
  7. License

Example

To illustrate, here is an example of an agent message that’s possible using Index Network:

Components

Web App

The Web App component is where you can find the code for the web application. The web app provides a user-friendly interface that allows creators to explore indexes, manage their data, and configure them.

Indexer

The Indexer component hosts the code for the indexer. It acts as the backbone of the natural language operations, providing the necessary methods to consume data from Ceramic, interact with large language models. It listenes Apache Kafka to consume Ceramic Network events consumes to ChromaDB by running yarn consumer

API

The API repository also hosts the code for all the API operations To start, you can simply run yarn api

Full protocol documentation can be found on the Index Network documentation site β†’

Ceramic Network Node

ComposeDB on Ceramic is a composable graph database built for Web3. Here you can find the steps to deploy along with an IPFS Node: https://composedb.js.org/docs/0.6.x/guides/composedb-server

IPFS Node

ComposeDB on Ceramic is a composable graph database built for Web3. Here you can find the steps to deploy along with an IPFS Node: https://composedb.js.org/docs/0.6.x/guides/composedb-server

Others

We use PostgreSQL indexing feature of Ceramic Network and use KafkaConnect CDC to produce db changes to Apache Kafka and finally write data to ChromaDB via the consumer service.

Getting started

This code snippet demonstrates how to interact with the protocol using the Index client. It begins by initializing the client for and authenticating with a DID session. Then, it creates an index titled "Future of publishing" and a web page titled "Post medium publishing" with a specified URL. The code adds the web page to the index and performs a natural language query using the keyword "summarize," retrieving and displaying the natural language query response.

const indexClient = new Index({
  network: "testnet",
});

indexClient.authenticate(session);

// Create an index
const indexId = await indexClient.createIndex({
  title: "Future of publishing",
  signerPublicKey: "0x047955f0df748d..1708fc8c965",
  signerFunction: "QmaD9FZJYst2Tntf9UwSd3QUeD68XpaPhKBSyy5wWLHq2m",
});

// Create a web page
const webPageId = await indexClient.createWebPage({
  title: "Post medium publishing",
  url: "http://www.paulgraham.com/publishing.html",
});

// Add the web page to the index
await indexClient.addIndexItem(indexId, webPageId);

// Perform a natural language query
const queryResponse = await indexClient.query({
  query: "summarize",
  indexes: [indexId],
});

console.log("Query response:", queryResponse);
{
  "response": "This article discusses the intricacies and challenges of publishing in the modern digital era, emphasizing the importance of content quality and audience engagement. The author shares insights from personal experiences and outlines strategies for successful online publishing.",
  "sources": [
    {
      "itemId": "kjzl6kcym7w8y7fjc89gmnkne7qpdz5ws5ryfji3i8dndjh2wxuii7z1anybovo",
      "indexId": "indexIdValue"
    }
  ]
}

Contributing

First of all, thanks for thinking of contributing to this project. Before sending a Pull Request, please make sure that you're assigned the task on a GitHub issue.

  • If a relevant issue already exists, discuss on the issue and get it assigned to yourself on GitHub.
  • If no relevant issue exists, open a new issue and get it assigned to yourself on GitHub.

And join our community to get support, provide feedback, or just to say hello on...

Built with Open Protocols

Index Network leverages the power of several open protocols to enhance its capabilities:

  • Ceramic: Ceramic is a decentralized data network that brings unlimited data composability to Web3 applications. It enables Index Network to leverage the decentralized data network and utilize its features in building discovery engines.
  • Lit Protocol: Lit Protocol is a decentralized access control infrastructure designed to bring more utility to the web. Index Network integrates Lit Protocol to provide enhanced access control features, allowing creators to have fine-grained control over their data.
  • IPFS: IPFS (InterPlanetary File System) is a peer-to-peer hypermedia protocol designed to preserve and grow humanity's knowledge by making the web upgradeable, resilient, and more open. Index Network utilizes IPFS to store and distribute data, ensuring its availability and resilience.

Resources

  • Index Network to explore the app.
  • Discord for support and discussions with the community and the team.
  • GitHub for source code, project board, issues, and pull requests.
  • Twitter for the latest updates on the product and published blogs.

License

Index Network is under the MIT license. See the LICENSE for more information.

Index Network's Projects

examples icon examples

The agent generation examples using decentralized semantic index

js-ceramic icon js-ceramic

Typescript implementation of the Ceramic protocol

lit-js-sdk icon lit-js-sdk

The Lit Protocol SDK provides developers with a framework for implementing Lit functionality into their own applications.

surrealdb icon surrealdb

A scalable, distributed, collaborative, document-graph database, for the realtime web

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.