Settings

Theme

Show HN: Rag over all physics-related Wikipedia pages

llm-99.vercel.app

6 points by spstoyanov 2 years ago · 2 comments · 1 min read

Reader

A few weeks ago, during the LK-99 hype, I made a demo app to explain superconductors in simple terms using RAG over relevant Wikipedia pages. I thought it would be cool to extend this to all physics-related Wikipedia pages (which turns out to be ~ 14K). After getting the text and splitting the pages, I ended up with around 100K chunks. I created all the embeddings using OpenAI’s embedding API, which cost around $7. I stored all the vectors in Pinecone.

ricardoagzz 2 years ago

Super cool! And Llmflows looks really interesting, how does it differentiate from Langchain?

  • spstoyanovOP 2 years ago

    Thank you so much!

    The main difference between langchain and LLMFlows is in the philosophy - langchain has a "chain for everything" approach where chains come with multiple LLM calls, opinionated internal logic, and built-in default prompts. On the other hand llmflows has a "simple, explicit, transparent" approach where the goal is to allow developers to easily build their own chains (or flows) and have full control and transparency over the apps.

    If you are curious check out the intro section of this blog post I made some time ago: https://llmflows.substack.com/p/introduction-to-llmflows

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection