Coder Social home page Coder Social logo

obsidian-embedding's Introduction

Obsidian Embedding Plugin

Obsidian Plugin for embedding based search and visualization

Common issues

  • Using node.js v20 there is an issue with ts-node running standalone .ts files, instead you should use the following command node command instead of yarn
    • node --loader ts-node/esm {file}
  • If you want to run a file that uses local imports it is easiest to transpile the .ts file to a .cjs file (must be commonJS to avoid issues with package.json type configuration) and running that file directly with node
    • yarn tsc {file}.ts && mv {file}.js {file}.cjs && node {file}.cjs (Note: This may require that import statements are updated to point to the new .cjs files and any linked files that were transpiled also have their file extension changed to cjs)

Using Llama locally

The llama server is from llama.cpp and compiled for windows and linux. The weights are provided by llama.cpp as well, using the quantize routine.

Generating quantized model weights

Note: There are a ton of gguf models already quantized on hugging face, it might be easier to check their first instead of building llama.cpp

  • llama2

    • Get llama2 access from Meta
    • Build llama.cpp for your environment to generate the quantize program
    • Place the model weights from Meta in the ./models directory
    • Install python dependencies, pip install -r requirements.txt
    • Convert model to ggml FP16 format, python convert.py models/<model-directory>
    • Quantize model (refer to llama.cpp docs for more information if you want to modify the given quantization strategy), ./quantize ./models/<model-directory>/ggml-model-f16.gguf ./models/<model-directory>/ggml-model-Q4_K_M.gguf Q4_K_M
  • mixtral

    • TODO

obsidian-embedding's People

Contributors

zachrobertson avatar

Watchers

 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.