Skip to content

Commit

Permalink
chore: add a README to the CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
ydennisy committed Nov 19, 2023
1 parent 32506d5 commit ea180f2
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 39 deletions.
27 changes: 9 additions & 18 deletions backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,16 @@

Supabase studio: http://localhost:54323

```
npx tap repl w
```

## todos

- code design philosophy
- build in public, rejoin twitter
## Setup

## refs
Install project

- https://github.com/pgvector/pgvector-node#prisma
- https://github.com/langchain-ai/langchainjs/blob/54d9f92/langchain/src/vectorstores/prisma.ts#L130
- https://supabase.com/docs/guides/ai
- https://supabase.com/blog/hugging-face-supabase
- https://supabase.com/partners/integrations/prisma
- https://supabase.com/blog/openai-embeddings-postgres-vector
```
npm i
```

## inspiration
Run tests (watcher)

- SeaGOAT
- https://github.com/Dashibase/lotion
```
npx tap repl w
```
26 changes: 26 additions & 0 deletions cli/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# `KG1-CLI`

This is the first "UI", for interacting with `KG1`.
To learn more about the project please see the main [readme](../README.md).

## Install

To install the CLI you can simply run

```
npm i -g kg1-cli
```

You are now able to interact with the `KG1` server from your machine

```
kg1 add "A new note about something which is very interesting!"
kg1 search "how do racoons make love?"
kg1 chat "why is the world flat?"
```

To uninstall the CLI, just run

```
npm uninstall -g kg1-cli
```
2 changes: 1 addition & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kg1-cli",
"version": "0.0.3",
"version": "0.0.4",
"description": "",
"main": "dist/index.js",
"author": {
Expand Down
42 changes: 22 additions & 20 deletions scratch.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
Allowed inputs:
# Scratch

- a single link
- a note (.md, .txt, both?)
- a note with links inside
This is a page to throw ideas, refs, etc and delete as soon as possible.

In the first case no edges are created.
In the second case no edges are created.
In the third case we have the note as the parent and n children created, where n equals the number of links parsed.
## ideas

Parser will extract title, if inside of frontmatter.
Parser will split out frontmatter from the main body.
- check out ra-dit paper, and its references
- we can have kg1 run locally, so all data is local, but a ActivityPub stream has things published and displayed centrally
- this would be a nice local + social
- would also allow to use DBs locally cheaper.

## references

- https://github.com/pgvector/pgvector-node#prisma
- https://github.com/langchain-ai/langchainjs/blob/54d9f92/langchain/src/vectorstores/prisma.ts#L130
- https://supabase.com/docs/guides/ai
- https://supabase.com/blog/hugging-face-supabase
- https://supabase.com/partners/integrations/prisma
- https://supabase.com/blog/openai-embeddings-postgres-vector
- https://github.com/withastro/astro/blob/main/packages/markdown/remark/package.json
- https://github.com/remarkjs/remark#example-support-for-gfm-and-frontmatter
- https://github.com/remarkjs/remark-frontmatter/blob/main/lib/index.js

inspiration
## inspiration

- https://github.com/danswer-ai/danswer
- https://github.com/pathwaycom/llm-app
- https://ts.llamaindex.ai/
- https://js.langchain.com/docs/get_started/introduction

ideas
- check out ra-dit paper, and its references
- we can have kg1 run locally, so all data is local, but a ActivityPub stream has things published and displayed centrally
- this would be a nice local + social
- would also allow to use DBs locally cheaper.
- [SeaGOAT](https://github.com/kantord/SeaGOAT)
- [lotion]https://github.com/Dashibase/lotion
- [danswer]https://github.com/danswer-ai/danswer
- [llm-app]https://github.com/pathwaycom/llm-app
- [llama-index]https://ts.llamaindex.ai/
- [lang-chain]https://js.langchain.com/docs/get_started/introduction

0 comments on commit ea180f2

Please sign in to comment.