perryvegehan/Your-OWN-AI — reverse-engineered prompt
Reverse engineered prompt
Build me a simple local vector database demo I can run on my Windows laptop, with one C++ server and a browser UI. I want it to feel educational and visual, not just an API. The app should let me search a small set of demo vectors and compare HNSW, KD tree, and brute force side by side, using cosine, Euclidean, and Manhattan distance. Show the results clearly and plot the vectors on a 2D scatter chart so I can see the clusters.
I also want a documents area where I can paste real text, turn it into embeddings through Ollama, store the chunks, and then ask questions about those documents with a local RAG flow. Use one local embedding model and one local chat model through Ollama, and make the answer stream in nicely with the retrieved context visible.
Please include the basic REST endpoints for search, insert, delete, benchmark, stats, document insert and ask. Make it runnable end to end, and look up current Ollama details online if you need to.
Want more depth? Deep Reverse