GithubHelp home page GithubHelp logo

itsharex / code-search Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wizi-ai/code-search

0.0 0.0 0.0 1.01 MB

Code Search in natural language for React codebases [JS/TS]. Provided by Wizi AI.

Home Page: https://www.wizi.ai

License: MIT License

JavaScript 0.94% TypeScript 81.82% CSS 17.24%

code-search's Introduction

AI powered Code Search for React codebases (JS/TS) by Wizi AI

We are launching our Code Search feature as an open-source project for frontend teams to enjoy instant natural language search in React (JS/TS) codebases.

Note that this is a self-hosted tool that uses Vercel, OpenAI and Pinecone. All of these tools have generous free tiers which should be more than enough for you to try Code Search. For reference, indexing a mid-sized React repo should cost $1-2 on average.

Warning This is not a production ready solution. The goal of this repo is to give a quick template for frontend teams to experiment with their own code search tools.

wizi_search.mp4

Setup

Deploy with Vercel

  1. Double click on the button above and open the link in a new tab.
  2. Note that we use Vercel to deploy and host this for your convenience instead of setting up locally.
  3. Now let's add 4 ENV variables.
  4. Generate Github Personal Access Token: https://github.com/settings/personal-access-tokens/new
  5. Generate OpenAI API Token: https://platform.openai.com/account/api-keys
  6. Generate Pinecone API Token: https://app.pinecone.io/
  7. Also in Pinecone, create a new index: {name: 'wizi-ai-code-search', dimensions: 1536, metric: 'cosine', pod_type: 'P1'}
  8. Extract base url string under the title. Ex: wizi-ai-code-search-7874c84.svc.us-east1-gcp.pinecone.io.
  9. Add this url as PINECONE_BASE_URL in Vercel setup. Important to add https:// prefix to the string, so that your PINECONE_BASE_URL env variable is in the similar to https://wizi-ai-code-search-7874c84.svc.us-east1-gcp.pinecone.io
  10. Hit deploy. Should take less than two minutes. Once complete, you will have a link to your app. Congrats!

code-search's People

Contributors

zalkar-z 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.