GithubHelp home page GithubHelp logo

abhifuse / sf-explorer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from avinava/sf-explorer

0.0 0.0 0.0 769 KB

Find the right sf commands without digging through the cli documentation using openai

Home Page: https://explorer.sfdxy.com/

JavaScript 4.26% TypeScript 89.61% CSS 2.20% HTML 3.93%

sf-explorer's Introduction

sf-explorer - Simplify Your Search for sf Commands

home.png

Introduction

sf-explorer is a tool that helps you find the right sf commands without having to dig through the documentation. Under the hood, sf-explorer uses a vector store (ChromaDB) to store and index the Salesforce CLI documentation. This indexed data is then used to provide accurate and relevant command suggestions based on your queries.

The tool leverages OpenAI embeddings to understand the context and semantics of your queries. It uses the ConversationalRetrievalQAChain from Langchain to generate responses, ensuring that the answers you get are not only accurate but also contextually relevant to your query.

Demo : https://explorer.sfdxy.com/

Prerequisites

Before getting started with sf-explorer, make sure you have the following prerequisites in place:

  • Node.js installed
  • Yarn package manager installed
  • Chroma installed and running

.env Setup

To use sf-explorer, you need to set up your environment variables. Follow the steps below:

  1. Obtain an OpenAI API key.
  2. Open the .env file in your project directory.
  3. Set the value of OPENAI_API_KEY to your OpenAI API key.

Setup

To set up sf-explorer for your project, follow the steps below:

  1. Install the necessary packages by running yarn install in your project directory.
  2. Run yarn refresh-chroma to ensure Chroma is up to date.
  3. Run yarn dev to start sf-explorer locally.
  4. Open http://localhost:7456/ to access the app.

Publishing

To publish your sf-explorer app, follow these steps:

  1. Run yarn build.
  2. Publish the generated build files to your desired hosting platform.

Inspired By

sf-explorer was inspired by gitexplorer, a similar tool for finding the right Git commands.

sf-explorer's People

Contributors

avinava avatar

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.