Git Product home page Git Product logo

7-docs's Introduction

7-docs

Build a knowledge base and ask it questions through OpenAI APIs. Chat with your content!

7-docs is a powerful set of OpenAI-based tools and ingest content to store into a vector database, ready to get queried like you would with ChatGPT.

  • Use @7-docs/cli to ingest content from the command-line
  • Use @7-docs/edge for deploying functions to query the content (aka "chat completions")

Impression

Ingest from CLI

Demo of ingest and query

Use the 7d CLI tool from @7-docs/cli to ingest content.

As shown in the example, you can also use 7d to query the content from the CLI (just like chat completions).

Query from UI

Use @7-docs/edge to build your own functions for chat completions.

See the 7-docs organization page for demos and starter kits.

Inspired by

7-docs's People

Contributors

realdreamer avatar webpro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

7-docs's Issues

7-docs/cli error - Unexpected token A in JSON at position 0

Getting "Unexpected token A in JSON at position 0" on attempt to create an index in pinecone database.
A clean created project, 7-docs is installed locally as a dev dependency.
OpenAI and pinecone api keys set through
npx 7d set ...
then running
npx 7d pinecone-create-index --index my-index --environment us-east4-gcp

  • and it gives me "Unexpected token A in JSON at position 0" in console.

[Question] Can this potentially ingest .ts / .tsx files?

Would it be possible to share not only .md files but also the code in order to have the questions adapted to the actual code and not only the documentation?

If it is not possible, at least ingesting the types / interfaces would be a nice booster already.

Thanks!

Missing PINECONE_URL environment variable

Getting this error when trying to
npx 7d ingest ...
found the reason - env.ts file -
export const OPENAI_API_KEY = process.env.OPENAI_API_KEY ?? get('env', 'OPENAI_API_KEY'); export const PINECONE_URL = process.env.PINECONE_URL; export const PINECONE_API_KEY = process.env.PINECONE_API_KEY ?? get('env', 'PINECONE_API_KEY'); export const SUPABASE_URL = process.env.SUPABASE_URL ?? get('env', 'SUPABASE_URL'); export const SUPABASE_API_KEY = process.env.SUPABASE_API_KEY ?? get('env', 'SUPABASE_API_KEY'); export const GITHUB_TOKEN = process.env.GITHUB_TOKEN ?? get('env', 'GITHUB_TOKEN');

As I understand - PINECONE_URL should be obtained the same way, as all others - through the env() call.
Sorry for my audacity with this - but really like this project, and would like to help it to improve)

Open source license

Is this project intended to be open source? If so a LICENSE should be added

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.