An open API service indexing awesome lists of open source software.

https://github.com/sharp0802/fsix

FSIX is fast source indexer using ChromaDB, written with Rust
https://github.com/sharp0802/fsix

chromadb indexer rust

Last synced: 11 months ago
JSON representation

FSIX is fast source indexer using ChromaDB, written with Rust

Awesome Lists containing this project

README

          

# FSIX : Fast Source Indexer

FSIX is fast source indexer using ChromaDB, written with Rust.

## Method

Sources are chunked function-by-function.
And those chunked functions are stored into database.

Currently, Chunking is supported on only C/C++.
If a file is not written with C/C++,
Any chunking mechanism will be disabled.

But, If a language can be parsed by tree-sitter crate,
You can add a support for that language easily.

## Usage

```
fsix -i
fsix --index
fsix -q
fsix --query
```

- `-i` | `--index` - Index sources

Reads files from `stdin` line-by-line until EOF.
So you can pipe files to `fsix`:

```
find . -name '*.cxx' | fsix -i
```

- `-q` | `--query` - Query sources

Read-to-end `stdin`, and use it as query.
Same as indexing, you can also pipe query to `fsix`:

```
cat prompt.txt | fsix -q
fsix -q < prompt.txt
```