#ai
All the articles tagged with "ai".
- 34 min read
Hybrid search with PostgreSQL, pgvector and TypeScript
Keyword search finds the exact word 'iPhone'. Vector search understands 'Apple smartphone'. One Postgres query that runs both and merges the results.
- 14 min read
LangChain and Qdrant with OpenRouter in Node.js
Turn a folder of text files into something you can ask questions about. Qdrant stores the vectors, OpenRouter runs the models, LangChain glues it together.
- 26 min read
RAG with LangChain, pgvector and Node.js
Same notes, same Postgres table, same questions as the hand-written version. This time LangChain does the splitting, storing, searching and prompting, still in one TypeScript file.
- 22 min read
RAG from scratch with pgvector, Node.js and TypeScript
No LangChain, no framework. One TypeScript file that turns notes into vectors, stores them in Postgres with pgvector, and answers questions about them.