technovangelist.videoprojects/2024-10-29-embeddings
Matt Williams d47f2c252c asht
Signed-off-by: Matt Williams <m@technovangelist.com>
2024-10-31 12:48:24 -07:00
..
config.ts add embed compare 2024-10-31 12:46:34 -07:00
deno.json add embed compare 2024-10-31 12:46:34 -07:00
deno.lock add embed compare 2024-10-31 12:46:34 -07:00
main.ts add embed compare 2024-10-31 12:46:34 -07:00
readme.md asht 2024-10-31 12:48:24 -07:00
test1.ts add embed compare 2024-10-31 12:46:34 -07:00
test2.ts add embed compare 2024-10-31 12:46:34 -07:00
test3.ts add embed compare 2024-10-31 12:46:34 -07:00
test4.ts add embed compare 2024-10-31 12:46:34 -07:00
vectorprep.ts add embed compare 2024-10-31 12:46:34 -07:00
videoscript.txt add embed compare 2024-10-31 12:46:34 -07:00
videoscript2.txt add embed compare 2024-10-31 12:46:34 -07:00
videoscript3.txt add embed compare 2024-10-31 12:46:34 -07:00
videoscript4.txt add embed compare 2024-10-31 12:46:34 -07:00

This is the code for the Ollama Course video on Embeddings, released on 2024-10-31.

The code uses Deno, so make sure that is installed. You can find out more about that at https://deno.land/

The one thing you need to install is ChromaDB. You can install it with pip install chromadb. Then in this directory, run chroma run --path ./db.

If you want to use your own documents, change scripts at the bottom of config.ts.

Then run deno --allow-read --allow-net vectorprep.ts to create the embeddings.

  • Test1: deno --allow-read --allow-net test1.ts
  • Test2: deno --allow-read --allow-net test2.ts
  • Test3: deno --allow-read --allow-net test3.ts
  • Test4: deno --allow-read --allow-net test4.ts