Giter VIP home page Giter VIP logo

csep's Introduction

You will find many kinds of projects on here, from contributions to Open Source libraries I tried to use and then broke and decided to fix, to projects to back up my blogposts, to just random experiments that I find useful to keep.

While I write mainly backend microservice stuff by day, on here I pretty much just solve any computer related problem I have with code; whether it's controlling my fan speed or solving my 20GB Skyrim save file problem it's all fair game for this polyglot programmer.

You will find the projects I am most proud of pinned below.

Language Preferences in order

Rust C TypeScript

Contact Location
Email [email protected]
Linkedin https://www.linkedin.com/in/divan-visagie

csep's People

Contributors

divanvisagie avatar

Watchers

 avatar

csep's Issues

See if fastembed can be better for larger directories

Fastembed looks like it is slower on a single embedding, however since it has a batch function, it might serve better for multiple embeds or at least the overhead might be worth he performance gain on larger context sets.

https://crates.io/crates/fastembed

✦ ❯ hyperfine --warmup 3 target/release/emby # Results on hello world string fastembed
Benchmark 1: target/release/emby
  Time (mean ± σ):     515.1 ms ±   2.8 ms    [User: 1100.6 ms, System: 210.6 ms]
  Range (min … max):   511.4 ms … 520.1 ms    10 runs


emby on  master [?] is 📦 v0.1.0 via 🦀 v1.79.0 took 6s
✦ ❯ hyperfine --warmup 3 ./test.sh # results on hello world string using curl to ollama
Benchmark 1: ./test.sh
  Time (mean ± σ):     115.4 ms ±  31.1 ms    [User: 12.0 ms, System: 13.8 ms]
  Range (min … max):    81.5 ms … 168.0 ms    36 runs

Improve error handling

We have a lot of errors, one of which can be that it crashes the running instance of ollama.

The first thing we can look at is ignoring any files that are binary explicitly.

Order output with descending similarity

Description:
When the output of the csep command is generated, the similarity results should be listed in descending order of similarity rather than in what appears to be a random order. This will improve the usability by allowing users to see the most relevant results first without needing additional sorting.

Current Behavior:

  • The similarity results appear to be listed in a random order when the command is executed.

Expected Behavior:

  • The similarity results should be ordered from the highest similarity to the lowest, making it easier for users to identify the most relevant matches quickly.

Example:
If the user search query is "example query", the output should display results sorted by the highest similarity first:

Result 1: [highest similarity]
Result 2: [second highest similarity]
...
Result N: [lowest similarity]

Add caching option

Add a csep init command which will create a .csep directory which will store an embedidngs cache (inspired by the .git directory)

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.