{"id":"6b08c24c38c84264c2027478","slug":"ai-in-python","title":"AI in Python: Anthropic SDK, Pydantic, LangChain, LlamaIndex and FastAPI in practice","summary":"A map of the richest AI ecosystem – when the provider SDK with Pydantic is enough and when LangChain or LlamaIndex pay off – plus streaming, tools, RAG with sentence-transformers and Qdrant, an MCP server and a FastAPI endpoint with tests.","servedLang":"en","availableLangs":["pl","en"],"topics":["ai-in-python","rag","tool-use","embeddings-vector-db"],"techs":["python"],"tags":["python","anthropic-sdk","pydantic","langchain","langgraph","llamaindex","sentence-transformers","qdrant","fastapi","mcp","claude"],"level":"intermediate","kind":"article","access":"members","status":"published","cover":null,"author":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","community":false},"readingMinutes":18,"stats":{"views":3,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-26T23:35:40.912Z","updatedAt":"2026-11-27T13:05:00.179Z","requestedLang":"en","theme":{"hero":"classic","heroMedia":null,"accent":"rose","background":"grid","weaveResources":true,"toc":"right"},"seoDescription":"AI in Python: Anthropic SDK (stream, messages.parse, tool runner), Pydantic, LangChain create_agent, LlamaIndex, sentence-transformers, Qdrant, MCP and FastAPI SSE with tests.","wordCount":3475,"doc":{"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"Python is the home of machine learning, so it is no surprise that most AI libraries are born there: official provider SDKs, "},{"type":"text","text":"LangChain","marks":[{"type":"bold"}]},{"type":"text","text":" and "},{"type":"text","text":"LangGraph","marks":[{"type":"bold"}]},{"type":"text","text":", "},{"type":"text","text":"LlamaIndex","marks":[{"type":"bold"}]},{"type":"text","text":", "},{"type":"text","text":"PydanticAI","marks":[{"type":"bold"}]},{"type":"text","text":", "},{"type":"text","text":"sentence-transformers","marks":[{"type":"code"}]},{"type":"text","text":", clients for every vector database. That abundance has a price – it is easy to build a prototype out of six layers of abstraction that nobody can debug. This guide shows how to take only what you need from the ecosystem and how to move code from a notebook into a production service."}]},{"type":"stats","attrs":{"items":[{"value":"1","label":"Pydantic model","hint":"describes the response structure, tool arguments and the API contract"},{"value":"3","label":"levels of abstraction","hint":"provider SDK, frameworks (LangChain, LlamaIndex), agents (LangGraph)"},{"value":"0","label":"blocking calls in async endpoints","hint":"use AsyncAnthropic in FastAPI"}]}},{"type":"callout","attrs":{"variant":"info","title":"TL;DR"},"content":[{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"The "},{"type":"text","text":"provider SDK","marks":[{"type":"bold"}]},{"type":"text","text":" ("},{"type":"text","text":"anthropic","marks":[{"type":"code"}]},{"type":"text","text":") with "},{"type":"text","text":"Pydantic","marks":[{"type":"bold"}]},{"type":"text","text":" covers most needs: streaming, structured responses ("},{"type":"text","text":"messages.parse","marks":[{"type":"code"}]},{"type":"text","text":") and tools with the tool runner."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"LangChain/LangGraph","marks":[{"type":"bold"}]},{"type":"text","text":" and "},{"type":"text","text":"LlamaIndex","marks":[{"type":"bold"}]},{"type":"text","text":" pay off for agents with many integrations and for RAG over many sources – but they add dependencies you must pin and test."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"In production the boring things matter: an async client in FastAPI, timeouts, logging "},{"type":"text","text":"usage","marks":[{"type":"code"}]},{"type":"text","text":", tests with a fake client and "},{"type":"text","text":"evals","marks":[{"type":"link","attrs":{"href":"/en/topics/evals"}}]},{"type":"text","text":" on the real model."}]}]}]}]},{"type":"heading","attrs":{"level":2,"id":"the-problem-a-notebook-that-went-to-production"},"content":[{"type":"text","text":"The problem: a notebook that went to production"}]},{"type":"paragraph","content":[{"type":"text","text":"The data team at Halina's Pierogi built an assistant in Jupyter that answers questions about the menu and orders. The demo impressed the board, so the code was moved into a FastAPI service almost unchanged. A week later:"}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"an "},{"type":"text","text":"async","marks":[{"type":"code"}]},{"type":"text","text":" endpoint called the synchronous client, so one long question blocked the event loop and every other request waited,"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"pip install","marks":[{"type":"code"}]},{"type":"text","text":" without pinned versions upgraded an integration library and the application stopped starting,"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"a chain of six framework calls returned text that was parsed with regular expressions,"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"there was not a single test – every run called the real model and cost money."}]}]}]},{"type":"paragraph","content":[{"type":"text","text":"None of these problems comes from Python. They come from not deciding which layer of the ecosystem to use and how to wrap it in production code."}]},{"type":"heading","attrs":{"level":2,"id":"ecosystem-map"},"content":[{"type":"text","text":"Ecosystem map"}]},{"type":"table","content":[{"type":"tableRow","content":[{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Layer"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Libraries"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"What for"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Provider SDKs"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"anthropic","marks":[{"type":"code"}]},{"type":"text","text":", "},{"type":"text","text":"openai","marks":[{"type":"code"}]}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"the full API: streaming, "},{"type":"text","text":"messages.parse","marks":[{"type":"code"}]},{"type":"text","text":", tool runner, prompt caching, batch, files"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Data structures"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"pydantic","marks":[{"type":"code"}]}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"response and tool schemas, validation, FastAPI contracts"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"LLM application frameworks"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"langchain","marks":[{"type":"code"}]},{"type":"text","text":" + "},{"type":"text","text":"langchain-anthropic","marks":[{"type":"code"}]},{"type":"text","text":", "},{"type":"text","text":"llama-index","marks":[{"type":"code"}]}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"agents, integrations (loaders, vector stores), ready-made RAG pipelines"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Agents and flows"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"langgraph","marks":[{"type":"code"}]},{"type":"text","text":", "},{"type":"text","text":"pydantic-ai","marks":[{"type":"code"}]}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"flows as stateful graphs, checkpoints, human-in-the-loop"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Embeddings and vectors"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"sentence-transformers","marks":[{"type":"code"}]},{"type":"text","text":", "},{"type":"text","text":"qdrant-client","marks":[{"type":"code"}]},{"type":"text","text":", "},{"type":"text","text":"pgvector","marks":[{"type":"code"}]},{"type":"text","text":", "},{"type":"text","text":"chromadb","marks":[{"type":"code"}]}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"local embeddings, vector search – see "},{"type":"text","text":"embeddings and vector databases","marks":[{"type":"link","attrs":{"href":"/en/topics/embeddings-vector-db"}}]}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Local models"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"ollama","marks":[{"type":"code"}]},{"type":"text","text":", "},{"type":"text","text":"vllm","marks":[{"type":"code"}]},{"type":"text","text":", "},{"type":"text","text":"transformers","marks":[{"type":"code"}]}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"open models on your own hardware – see "},{"type":"text","text":"local LLMs","marks":[{"type":"link","attrs":{"href":"/en/topics/local-llms"}}]}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Protocol"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"mcp","marks":[{"type":"code"}]}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"MCP","marks":[{"type":"link","attrs":{"href":"/en/topics/mcp"}}]},{"type":"text","text":" servers and clients"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Evaluation and observability"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"pytest","marks":[{"type":"code"}]},{"type":"text","text":", promptfoo, Langfuse, OpenTelemetry"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"tests, evals, tracking cost and latency"}]}]}]}]},{"type":"packageCard","attrs":{"eco":"pypi","name":"anthropic"}},{"type":"packageCard","attrs":{"eco":"pypi","name":"pydantic"}},{"type":"paragraph","content":[{"type":"text","text":"Before you reach for a framework, answer a few questions:"}]},{"type":"diagram","attrs":{"kind":"mermaid","code":"flowchart TB\n  A[\"New AI feature\"] --> B([\"A single model call<br/>or a simple tool loop?\"])\n  B -->|\"yes\"| C[\"anthropic + Pydantic\"]\n  B -->|\"no\"| D([\"A stateful flow with branches<br/>or human approval?\"])\n  D -->|\"yes\"| E[\"LangGraph<br/>(or your own state machine)\"]\n  D -->|\"no\"| F([\"RAG over many sources<br/>and document formats?\"])\n  F -->|\"yes\"| G[\"LlamaIndex<br/>or LangChain + vector store\"]\n  F -->|\"no\"| H([\"An agent with many<br/>ready-made integrations?\"])\n  H -->|\"yes\"| I[\"LangChain create_agent\"]\n  H -->|\"no\"| C","caption":"Provider SDK or framework? Start with the simplest layer that solves the problem"}},{"type":"section","attrs":{"background":"tint","width":"wide","padding":"m"},"content":[{"type":"heading","attrs":{"level":2,"id":"how-this-ecosystem-grew"},"content":[{"type":"text","text":"How this ecosystem grew"}]},{"type":"columns","attrs":{"layout":"1-1","valign":"top"},"content":[{"type":"column","content":[{"type":"paragraph","content":[{"type":"text","text":"Most libraries on the map appeared within a few years and still change quickly. That is good news – the problems of 2023 (parsing responses, hand-written tool loops) have ready-made solutions in the SDKs today. And bad news – tutorials from a year ago often show APIs that no longer exist."}]},{"type":"paragraph","content":[{"type":"text","text":"That is why the code in this article targets the versions current in November 2026: "},{"type":"text","text":"anthropic","marks":[{"type":"code"}]},{"type":"text","text":" 2.x, "},{"type":"text","text":"langchain","marks":[{"type":"code"}]},{"type":"text","text":" 1.x, "},{"type":"text","text":"llama-index-core","marks":[{"type":"code"}]},{"type":"text","text":" 0.14, "},{"type":"text","text":"mcp","marks":[{"type":"code"}]},{"type":"text","text":" 2.x, "},{"type":"text","text":"sentence-transformers","marks":[{"type":"code"}]},{"type":"text","text":" 6.x. Before you copy an example from the internet, check which version it was written for."}]}]},{"type":"column","content":[{"type":"timeline","attrs":{"items":[{"date":"2019","title":"Transformers and Sentence-BERT","text":"Hugging Face organizes models in the transformers library; the Sentence-BERT paper starts sentence-transformers."},{"date":"2022","title":"LangChain and GPT Index","text":"Harrison Chase releases LangChain, Jerry Liu releases GPT Index, later LlamaIndex."},{"date":"2023","title":"Provider SDKs","text":"official Python SDKs become the default way to call models."},{"date":"2024","title":"LangGraph, MCP, PydanticAI","text":"agent flows as graphs, the MCP protocol with a Python SDK and Pydantic-style agents."},{"date":"2025","title":"LangChain 1.0","text":"a stable API with create_agent built on LangGraph."},{"date":"2026","title":"mcp 2.0 and anthropic 2.0","text":"July and October: new major SDK versions – and integrations that have to keep up."}]}}]}]}]},{"type":"heading","attrs":{"level":2,"id":"the-provider-sdk-streaming-and-structured-responses"},"content":[{"type":"text","text":"The provider SDK: streaming and structured responses"}]},{"type":"paragraph","content":[{"type":"text","text":"The official SDK gives you two things almost every feature needs: "},{"type":"text","text":"streaming","marks":[{"type":"bold"}]},{"type":"text","text":" ("},{"type":"text","text":"messages.stream","marks":[{"type":"code"}]},{"type":"text","text":") and "},{"type":"text","text":"structured responses","marks":[{"type":"bold"}]},{"type":"text","text":" ("},{"type":"text","text":"messages.parse","marks":[{"type":"code"}]},{"type":"text","text":"). The latter takes a Pydantic class, sends its schema as the response format and returns the result as a validated object in "},{"type":"text","text":"parsed_output","marks":[{"type":"code"}]},{"type":"text","text":". No more regular expressions over \"2x ruskie and one cabbage\"."}]},{"type":"codeGroup","attrs":{"title":"Streaming and order extraction with Pydantic"},"content":[{"type":"codeBlock","attrs":{"language":"python","filename":"stream_chat.py"},"content":[{"type":"text","text":"import anthropic\n\nclient = anthropic.Anthropic()  # reads ANTHROPIC_API_KEY from the environment\n\nSYSTEM = \"You are the support assistant of Halina's Pierogi. Answer briefly and politely.\"\n\n\ndef ask(question: str) -> str:\n    with client.messages.stream(\n        model=\"claude-opus-5-5\",\n        max_tokens=64000,\n        output_config={\"effort\": \"low\"},  # FAQ answers need little reasoning\n        system=SYSTEM,\n        messages=[{\"role\": \"user\", \"content\": question}],\n    ) as stream:\n        for text in stream.text_stream:  # print tokens as they arrive\n            print(text, end=\"\", flush=True)\n        final = stream.get_final_message()\n\n    print(f\"\\n[{final.stop_reason}] in={final.usage.input_tokens} out={final.usage.output_tokens}\")\n    return \"\".join(b.text for b in final.content if b.type == \"text\")\n\n\nif __name__ == \"__main__\":\n    ask(\"How long do you cook frozen pierogi?\")"}]},{"type":"codeBlock","attrs":{"language":"python","filename":"extract_order.py"},"content":[{"type":"text","text":"from typing import Literal\n\nimport anthropic\nfrom pydantic import BaseModel, Field\n\nclient = anthropic.Anthropic()\n\n\nclass OrderLine(BaseModel):\n    dish: Literal[\"ruskie\", \"cabbage\", \"meat\", \"spinach\"]\n    quantity: int = Field(ge=1, le=20)\n\n\nclass OrderDraft(BaseModel):\n    lines: list[OrderLine]\n    pickup_time: str | None = Field(description=\"HH:MM, or null when not given\")\n    notes: str | None\n\n\ndef extract(text: str) -> OrderDraft:\n    # parse() sends the Pydantic schema as a structured-output format\n    # and validates the JSON the model returns.\n    response = client.messages.parse(\n        model=\"claude-opus-5-5\",\n        max_tokens=16000,\n        system=\"Turn the customer's message into an order draft. Do not invent dishes.\",\n        messages=[{\"role\": \"user\", \"content\": text}],\n        output_format=OrderDraft,\n    )\n    if response.stop_reason != \"end_turn\":\n        raise RuntimeError(f\"Unexpected stop reason: {response.stop_reason}\")\n    return response.parsed_output\n\n\nif __name__ == \"__main__\":\n    draft = extract(\"2x ruskie and one cabbage for 18:30, no onion please\")\n    print(draft.model_dump_json(indent=2))"}]}]},{"type":"paragraph","content":[{"type":"text","text":"A few details that are easy to miss:"}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Not every Pydantic constraint reaches the model.","marks":[{"type":"bold"}]},{"type":"text","text":" Structured outputs support a subset of JSON Schema; the SDK moves unsupported constraints (such as "},{"type":"text","text":"ge","marks":[{"type":"code"}]},{"type":"text","text":"/"},{"type":"text","text":"le","marks":[{"type":"code"}]},{"type":"text","text":" on numbers) into the field description and checks them client-side during validation. Handle validation errors like any other error."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Describe optional fields as ","marks":[{"type":"bold"}]},{"type":"text","text":"str | None","marks":[{"type":"code"}]},{"type":"text","text":" without a default","marks":[{"type":"bold"}]},{"type":"text","text":" when the model should always return them (even as "},{"type":"text","text":"null","marks":[{"type":"code"}]},{"type":"text","text":") – the schema is then unambiguous."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Check ","marks":[{"type":"bold"}]},{"type":"text","text":"stop_reason","marks":[{"type":"code"}]},{"type":"text","text":".","marks":[{"type":"bold"}]},{"type":"text","text":" A response cut off by "},{"type":"text","text":"max_tokens","marks":[{"type":"code"}]},{"type":"text","text":" will not validate; it is better to react explicitly than to catch a parser exception."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"effort","marks":[{"type":"code"}]},{"type":"text","text":" instead of temperature.","marks":[{"type":"bold"}]},{"type":"text","text":" Current Claude models do not accept sampling parameters; you set reasoning depth in "},{"type":"text","text":"output_config","marks":[{"type":"code"}]},{"type":"text","text":". Explained in "},{"type":"text","text":"LLM fundamentals","marks":[{"type":"link","attrs":{"href":"/en/topics/llm-fundamentals"}}]},{"type":"text","text":"."}]}]}]},{"type":"resourceRef","attrs":{"resourceId":"6b0854b31a40d7e6c24ca5f2"}},{"type":"heading","attrs":{"level":2,"id":"tools-the-tool-runner-with-a-decorator"},"content":[{"type":"text","text":"Tools: the tool runner with a decorator"}]},{"type":"paragraph","content":[{"type":"text","text":"You can write the "},{"type":"text","text":"tool use","marks":[{"type":"link","attrs":{"href":"/en/topics/tool-use"}}]},{"type":"text","text":" loop by hand, but the Python SDK has a "},{"type":"text","text":"tool runner","marks":[{"type":"bold"}]},{"type":"text","text":" (in beta): the "},{"type":"text","text":"@beta_tool","marks":[{"type":"code"}]},{"type":"text","text":" decorator builds the tool schema from the function signature and docstring, and the runner calls the tools and sends results back to the model until it is done. The docstring is part of the contract here – it is how the model learns "},{"type":"text","text":"when","marks":[{"type":"bold"}]},{"type":"text","text":" to use the tool."}]}]},"toc":[{"id":"the-problem-a-notebook-that-went-to-production","text":"The problem: a notebook that went to production","level":2,"locked":false},{"id":"ecosystem-map","text":"Ecosystem map","level":2,"locked":false},{"id":"how-this-ecosystem-grew","text":"How this ecosystem grew","level":2,"locked":false},{"id":"the-provider-sdk-streaming-and-structured-responses","text":"The provider SDK: streaming and structured responses","level":2,"locked":false},{"id":"tools-the-tool-runner-with-a-decorator","text":"Tools: the tool runner with a decorator","level":2,"locked":false},{"id":"rag-sentence-transformers-qdrant-and-claude","text":"RAG: sentence-transformers, Qdrant and Claude","level":2,"locked":true},{"id":"frameworks-langchain-and-llamaindex","text":"Frameworks: LangChain and LlamaIndex","level":2,"locked":true},{"id":"mcp-share-your-tools-with-other-applications","text":"MCP: share your tools with other applications","level":2,"locked":true},{"id":"production-fastapi-an-sse-stream-and-tests-without-the-api","text":"Production: FastAPI, an SSE stream and tests without the API","level":2,"locked":true},{"id":"sdk-or-framework","text":"SDK or framework?","level":2,"locked":true},{"id":"checklist","text":"Checklist","level":2,"locked":true},{"id":"test-yourself","text":"Test yourself","level":2,"locked":true},{"id":"what-s-next","text":"What's next","level":2,"locked":true}],"locked":true,"paywall":null,"previewRatio":0.3,"totalBlocks":63,"visibleBlocks":22,"resources":[{"id":"6b0857bf3c96f2d34d0b42c9","type":"article","provider":"web","url":"https://python.langchain.com/docs/introduction","embedUrl":null,"title":"LangChain overview - Docs by LangChain","description":"LangChain provides create_agent: a minimal, highly configurable agent harness. Compose exactly the agent your use case needs from model, tools, prompt, and middleware.","author":"LangChain","thumbnailUrl":"https://langchain-5e9cc07a.mintlify.site/_mintlify/api/og/v2?division=Documentation&title=LangChain+overview&description=LangChain+provides+create_agent%3A+a+minimal%2C+highly+configurable+agent+harness.+Compose+exactly+the+agent+your+use+case+needs+from+model%2C+tools%2C+prompt%2C+and+midd&theme=f35197f94eda06999e44c5f5&signature=aa3d25aa184031869d94ffb8625b9b112c7e5f1558c6bf00a55e53e896be40b5","durationSec":null,"lang":"en","topics":["ai-in-python"],"techs":["python"],"tags":["ai"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":60,"verifiedAt":"2026-11-26T11:25:52.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:02.417Z","updatedAt":"2026-11-26T16:01:02.417Z"},{"id":"6b0857a93c96f2d34d0b3246","type":"repo","provider":"github","url":"https://github.com/run-llama/llama_index","embedUrl":null,"title":"run-llama/llama_index","description":"LlamaIndex is the document processing platform for AI","author":"run-llama","thumbnailUrl":"https://opengraph.githubassets.com/1/run-llama/llama_index","durationSec":null,"lang":"en","topics":["rag","ai-in-python"],"techs":["python"],"tags":[],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"seed","publishedAt":null,"popularity":94,"verifiedAt":"2026-11-26T00:00:00.000Z","curated":true,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:40.963Z","updatedAt":"2026-11-26T16:00:40.963Z"},{"id":"6b0857b23c96f2d34d0b343a","type":"repo","provider":"github","url":"https://github.com/pydantic/pydantic-ai","embedUrl":null,"title":"pydantic/pydantic-ai","description":"How Python does AI. Agents, realtime voice, image generation, embeddings. Every model, every interface, typed end to end.","author":"pydantic","thumbnailUrl":"https://opengraph.githubassets.com/1/pydantic/pydantic-ai","durationSec":null,"lang":"en","topics":["ai-agents","ai-in-python","embeddings-vector-db"],"techs":["python"],"tags":["agent-framework","pydantic","python","genai","llm","harness","ai","harness-engineering"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"github","publishedAt":"2024-06-21T15:55:04.000Z","popularity":84,"verifiedAt":"2026-11-26T10:56:00.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:49.541Z","updatedAt":"2026-11-26T16:00:49.541Z"},{"id":"6b0857b53c96f2d34d0b3970","type":"article","provider":"web","url":"https://www.sbert.net/index.html","embedUrl":null,"title":"SentenceTransformers: Python framework for sentence, text and image embeddings","description":"","author":"sbert.net","thumbnailUrl":null,"durationSec":null,"lang":"en","topics":["embeddings-vector-db","ai-in-python"],"techs":["python"],"tags":["ai","hacker-news"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"hn","publishedAt":"2024-04-07T10:23:51.000Z","popularity":67,"verifiedAt":"2026-11-26T11:18:31.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:52.228Z","updatedAt":"2026-11-26T16:00:52.228Z"},{"id":"6b0857a93c96f2d34d0b324b","type":"repo","provider":"github","url":"https://github.com/anthropics/claude-cookbooks","embedUrl":null,"title":"anthropics/claude-cookbooks","description":"A collection of notebooks/recipes showcasing some fun and effective ways of using Claude.","author":"anthropics","thumbnailUrl":"https://opengraph.githubassets.com/1/anthropics/claude-cookbooks","durationSec":null,"lang":"en","topics":["prompt-engineering","tool-use","rag"],"techs":["python"],"tags":[],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"seed","publishedAt":null,"popularity":95,"verifiedAt":"2026-11-26T00:00:00.000Z","curated":true,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:41.389Z","updatedAt":"2026-11-26T16:00:41.389Z"},{"id":"6b0857a83c96f2d34d0b323b","type":"course","provider":"huggingface","url":"https://huggingface.co/learn/llm-course","embedUrl":null,"title":"LLM Course","description":"Free course on large language models with the Hugging Face ecosystem: transformers, datasets, tokenizers, fine-tuning and building LLM applications.","author":"Hugging Face","thumbnailUrl":"https://cdn-thumbnails.huggingface.co/social-thumbnails/learn/llm-course/chapter1/1.png","durationSec":null,"lang":"en","topics":["llm-fundamentals","fine-tuning","ai-in-python"],"techs":["python"],"tags":[],"price":"free","featured":true,"featuredOrder":1,"packageName":null,"source":"seed","publishedAt":null,"popularity":0,"verifiedAt":"2026-11-26T00:00:00.000Z","curated":true,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:40.075Z","updatedAt":"2026-11-26T16:00:40.075Z"}],"challenges":[],"attachments":[],"hasCode":true,"repoUrl":null,"series":[],"prev":null,"next":null,"featured":false,"authorCard":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","headline":"Wzorce projektowe · Architektura · AI i LLM","community":false,"reputation":{"points":3900,"level":{"key":"mentor","label":"Mentor"}},"articles":68,"skills":[{"key":"typescript","title":"TypeScript","level":5,"levelLabel":"Authority","articles":63},{"key":"dotnet","title":".NET","level":5,"levelLabel":"Authority","articles":53},{"key":"python","title":"Python","level":5,"levelLabel":"Authority","articles":52},{"key":"java","title":"Java","level":5,"levelLabel":"Authority","articles":38}]}}