Back

Rahul Agarwal

Founder | Agentic AI... • 2m

Steps to building AI systems with LLM's. I've given a simple detailed explanation below. 𝗦𝘁𝗲𝗽 1 – 𝗟𝗟𝗠𝘀 (𝗟𝗮𝗿𝗴𝗲 𝗟𝗮𝗻𝗴𝘂𝗮𝗴𝗲 𝗠𝗼𝗱𝗲𝗹𝘀) • These are the 𝗯𝗿𝗮𝗶𝗻𝘀 of the system. • Examples: GPT (OpenAI), Gemini, Claude etc. • They generate answers, understand queries, and perform reasoning. 𝗦𝘁𝗲𝗽 2 – 𝗙𝗿𝗮𝗺𝗲𝘄𝗼𝗿𝗸𝘀 • Frameworks help you 𝗰𝗼𝗻𝗻𝗲𝗰𝘁 𝘁𝗵𝗲 𝗟𝗟𝗠 𝘄𝗶𝘁𝗵 𝗱𝗮𝘁𝗮, 𝘁𝗼𝗼𝗹𝘀, 𝗮𝗻𝗱 𝗮𝗽𝗽𝘀. • Examples: LangChain, Llama Index, Haystack, Txtai. • They act like a 𝘁𝗼𝗼𝗹𝗸𝗶𝘁 so you don’t have to build everything from scratch. 𝗦𝘁𝗲𝗽 3 – 𝗩𝗲𝗰𝘁𝗼𝗿 𝗗𝗮𝘁𝗮𝗯𝗮𝘀𝗲𝘀 • LLMs can’t remember everything. They need a 𝗺𝗲𝗺𝗼𝗿𝘆 𝘀𝘆𝘀𝘁𝗲𝗺. • Vector databases store “embeddings” (numerical representations of text). • Examples: Pinecone, Weaviate, Chroma, Milvus, Qdrant. • They make searching fast and relevant (like Google search but for your private data). 𝗦𝘁𝗲𝗽 4 – 𝗗𝗮𝘁𝗮 𝗘𝘅𝘁𝗿𝗮𝗰𝘁𝗶𝗼𝗻 • Your AI needs real-world 𝗱𝗮𝘁𝗮 𝗶𝗻𝗽𝘂𝘁𝘀. • Tools like Crawl4AI, FireCrawl, ScrapeGraphAI, Docling, LlamaParse help: - Scrape websites - Extract PDFs, docs, or tables - Clean and structure messy data 𝗦𝘁𝗲𝗽 5 – 𝗢𝗽𝗲𝗻 𝗟𝗟𝗠𝘀 𝗔𝗰𝗰𝗲𝘀𝘀 • Instead of calling proprietary APIs, you can 𝗿𝘂𝗻 𝗟𝗟𝗠𝘀 𝗹𝗼𝗰𝗮𝗹𝗹𝘆 or via open-source providers. • Examples: Hugging Face, Ollama etc. 𝗦𝘁𝗲𝗽 6 – 𝗧𝗲𝘅𝘁 𝗘𝗺𝗯𝗲𝗱𝗱𝗶𝗻𝗴𝘀 • To store text in databases, you must first 𝗰𝗼𝗻𝘃𝗲𝗿𝘁 𝗶𝘁 𝗶𝗻𝘁𝗼 𝗻𝘂𝗺𝗯𝗲𝗿𝘀 (𝘃𝗲𝗰𝘁𝗼𝗿𝘀). • Tools like OpenAI Embeddings, SBERT, Voyage AI etc handle this. • Embeddings allow semantic search (finding meaning, not just keywords). 𝗦𝘁𝗲𝗽 7 – 𝗘𝘃𝗮𝗹𝘂𝗮𝘁𝗶𝗼𝗻 • Once built, you must 𝘁𝗲𝘀𝘁 𝗮𝗻𝗱 𝗶𝗺𝗽𝗿𝗼𝘃𝗲 your system. • Tools: Giskard, Ragas, Trulens. • They measure: - Accuracy - Hallucinations (wrong answers) - Relevance of results ✅ 𝗙𝗶𝗻𝗮𝗹 𝗙𝗹𝗼𝘄 𝗶𝗻 𝗦𝗶𝗺𝗽𝗹𝗲 𝗪𝗼𝗿𝗱𝘀: 1. Choose a model (LLM). 2. Connect it with a framework. 3. Collect data and extract it properly. 4. Turn data into embeddings and store them in a vector DB. 5. Give the LLM access to search that DB. 6. Use open access tools if you want local/cheap models. 7. Continuously evaluate and refine. You can apply this framework in your company to design and deploy powerful AI solutions for your business. ✅ Repost for others in your network who can benefit from this.

Reply
8
8

More like this

Recommendations from Medial

Rahul Agarwal

Founder | Agentic AI... • 2m

Steps to building real-world AI systems. I've given a simple detailed explanation below. 𝗦𝘁𝗲𝗽 1 – 𝗗𝗲𝗽𝗹𝗼𝘆𝗺𝗲𝗻𝘁 & 𝗖𝗼𝗺𝗽𝘂𝘁𝗲 𝗟𝗮𝘆𝗲𝗿 • This is where all the 𝗵𝗲𝗮𝘃𝘆 𝗽𝗿𝗼𝗰𝗲𝘀𝘀𝗶𝗻𝗴 𝗵𝗮𝗽𝗽𝗲𝗻𝘀. • It provides the 𝗵𝗮𝗿�

See More
Reply
1
1
Image Description

Chirotpal Das

Building an AI eco-s... • 11m

Which is the fastest vector db for production in terms of vector similarity search and retrieval?

2 Replies
10
Image Description
Image Description

Rahul Agarwal

Founder | Agentic AI... • 2m

Steps to building Agentic AI systems from scratch. I've given a simple detailed explanation below. 𝗦𝘁𝗲𝗽 1 – 𝗚𝗣𝗨/𝗖𝗣𝗨 𝗣𝗿𝗼𝘃𝗶𝗱𝗲𝗿 (Compute Layer) • This is the engine that powers all AI computations. • You rent computing power to run y

See More
1 Reply
32
20
2
Image Description

Rahul Agarwal

Founder | Agentic AI... • 1m

Most people building AI systems miss these crucial steps. I've explained the architecture in simple way below. 𝗦𝘁𝗲𝗽 1 – 𝗗𝗮𝘁𝗮 𝗜𝗻𝗴𝗲𝘀𝘁𝗶𝗼𝗻 & 𝗣𝗿𝗼𝗰𝗲𝘀𝘀𝗶𝗻𝗴 (𝗜𝗻𝗴𝗲𝘀𝘁 𝗟𝗮𝘆𝗲𝗿) • This step brings data into your AI system. •

See More
1 Reply
3
5
Image Description

Rahul Agarwal

Founder | Agentic AI... • 18d

Most AI projects fail after deployment. I’ve explained the core problems step by step. 𝗦𝘁𝗲𝗽 1 – 𝗗𝗮𝘁𝗮 • Collects raw information from multiple sources. • Forms the foundation of every AI system. 𝗘.𝗴: APIs, logs, databases, user inputs. 𝗡

See More
1 Reply
28
20
Image Description
Image Description

Chetan Bhosale

Software Engineer | ... • 1y

💡 5 Things You Need to Master for learn for integrating AI into your project 1️⃣ Retrieval-Augmented Generation (RAG): Combine search with AI for precise and context-aware outputs. 2️⃣ Vector Databases: Learn how to store and query embeddings for e

See More
3 Replies
7
9
Image Description
Image Description

Rahul Agarwal

Founder | Agentic AI... • 4m

3 ways how most AI systems are built. I’ve explained each one step-by-step. 1) 𝗧𝗿𝗮𝗱𝗶𝘁𝗶𝗼𝗻𝗮𝗹 𝗔𝗜 (𝘀𝘁𝗲𝗽-𝗯𝘆-𝘀𝘁𝗲𝗽) 1. 𝗦𝗲𝘁 𝘁𝗮𝘀𝗸 – Decide what problem the model should solve. 2. 𝗖𝗼𝗹𝗹𝗲𝗰𝘁 𝗱𝗮𝘁𝗮 – Gather lots of example

See More
1 Reply
8
18
1

Gigaversity

Gigaversity.in • 8m

We built an e-commerce platform that worked well initially. But as the product catalog grew, users started facing issues—search results were slow and often not relevant. This led to frustration and a drop in engagement. To solve this, we upgraded th

See More
Reply
5

Rahul Agarwal

Founder | Agentic AI... • 11d

6 Chunking Methods for RAG you should know. I’ve explained it in a simple, step by step way. 𝗪𝗵𝗮𝘁 𝗶𝘀 𝗖𝗵𝘂𝗻𝗸𝗶𝗻𝗴? 1. Chunking means splitting large documents into smaller pieces. 2. Helps LLMs search and understand data better. 3. Essent

See More
Reply

Rahul Agarwal

Founder | Agentic AI... • 11d

6 Chunking Methods for RAG you should know. I’ve explained it in a simple, step by step way. 𝗪𝗵𝗮𝘁 𝗶𝘀 𝗖𝗵𝘂𝗻𝗸𝗶𝗻𝗴? 1. Chunking means splitting large documents into smaller pieces. 2. Helps LLMs search and understand data better. 3. Essent

See More
Reply
1

Download the medial app to read full posts, comements and news.