Verdicts first, ranked by results and evidence.
-
Explainer
Pydantic AI: Save and reload message history as JSON
As of November 2026, serialize messages with to_json, reload them with ModelMessagesTypeAdapter.validate_json, and pass the result as message_history on another run. Begin with ModelMessagesTypeAdapter
-
Explainer
Pydantic AI: Keep the five most recent messages
As of November 2026, wrap keep_recent_messages in ProcessHistory to send only the last five messages before each model request. Keep tool calls paired with their results when those exchanges matter. Begin with ProcessHistory
-
Explainer
OpenAI API: Replay history with store=False
As of November 2026, maintain history yourself, append every response.output item and the next user message, and send the full history with store=False on both calls. Start with from openai import OpenAI
-
Explainer
OpenAI API: Prewarm the prompt cache
As of November 2026, prewarm known context without generating output, wait for completion, then send the real question with the same prefix and prewarm omitted or false. Set prompt_cache_options.prewarm
-
Explainer
OpenAI API: Chain turns with previous_response_id
As of November 2026, create a response, then pass its id as previous_response_id on the next request to retain earlier context. The follow-up can explain the first answer. Start with from openai import OpenAI
-
Explainer
Anthropic SDK: Count message tokens before sending
As of November 2026, estimate input tokens for a Claude message before creating it, using the same model, system prompt and messages. Start with client = anthropic.Anthropic()
-
Explainer
Roo Code: set the context condensing threshold
As of November 2026, Set the percentage slider to attempt summarization earlier in long conversations; its default is 100%. Threshold to trigger intelligent context condensing
-
Explainer
LiteLLM: set keepalive for idle streams
As of November 2026, configure deployment SSE pings to keep silent streams active through idle connection timeouts. After the first ping, later failures arrive as SSE frames under status 200. Start with keepalive_seconds
-
Explainer
OpenAI API: set explicit prompt cache breakpoints
As of November 2026, choose cache boundaries with explicit-only mode and mark reusable input blocks; unmarked requests create no cache writes. Start with prompt_cache_options.mode
-
Explainer
Ollama: set a 64000-token context length
As of November 2026, set the serving context to 64000 tokens and inspect allocated context and GPU offloading with ollama ps. Start with OLLAMA_CONTEXT_LENGTH=64000 ollama serve
-
Explainer
OpenAI Agents SDK: Save chat history in SQLite
As of November 2026, pass the same file-backed session to successive agent runs to retain conversation history without manually rebuilding input. Start with SQLiteSession
-
News
Open WebUI 0.13: small files sent in full, not retrieved
As of November 2026, Open WebUI v0.13.1 includes files whose extracted text is shorter than 50,000 characters in full instead of retrieving chunks, for Preload files and the file search tool. Knowledge base attachments are not affected. To always retrieve, set
RAG_FULL_TEXT_CHAR_THRESHOLDto 0 -
News
FAISS 1.16: e-means niter is now nepochs, batch_law
As of November 2026, FAISS v1.16.0 renames the e-means training budget
nitertonepochs, andoperating_pointtobatch_law. Code that passesniter=to an e-means class raises a TypeError.batch_lawdefaults to "auto", which changes results for d <= 16. Replaceniter=withnepochs=in your e-means calls -
News
Sentence Transformers 6.3: token-pooling-aware training
As of November 2026, Sentence Transformers 6.3.0 adds
MultiVectorTokenPoolingLossso a multi-vector (ColBERT-style) encoder is trained for the token pooling you will deploy. In the release example factor-4 pooling cut 193.22 to 48.68 document embeddings and kept 97.8% of the unpooled score. Wrap your retrieval loss withMultiVectorTokenPoolingLoss -
News
Qdrant: fix 3x slower HNSW builds on many-core hosts
As of November 2026, Qdrant v1.20.1 fixes HNSW index builds being up to 3x slower on hosts with many cores, a regression in v1.20.0. The PR traces it to a
getrusagecheck contending on a shared cache line across about 240 build threads. If a rebuild crawled after the 1.20.0 upgrade, move to v1.20.1 -
News
CrewAI 1.15.42: Knowledge uses Qdrant, Chroma optional
If CrewAI Knowledge now needs Qdrant by default but your project uses ChromaDB, install
crewai[chromadb]; Qdrant uses local disk and fastembed, while ChromaDB is optional in 1.15.42. -
News
Weaviate: set keyword and vector search weights
As of November 2026, Weaviate hybrid search fuses BM25F and vector results. Set
alphaexplicitly: 0 is keyword-only, 1 vector-only, and 0.5 equal weight. Relative Score Fusion is default from v1.24; the effective omitted alpha depends on the client. Start withalpha=0.5. -
News
Weaviate: isolate retrieval data by tenant
As of November 2026, Weaviate isolates tenants on separate shards within one collection. Multi-tenancy is off by default; tenant names must be 4–64 characters. Create tenants and bind reads and writes with
with_tenant(...). Enable isolation withmultiTenancyConfig. -
News
Roo Code: keep project instructions in rule files
As of November 2026, keep project rules in
.roo/rules/and mode rules in.roo/rules-{modeSlug}/. Files load recursively in case-insensitive basename order; workspace rules take precedence over global rules. Start with.roo/rules/. -
News
Qdrant: restrict vector results by payload
As of November 2026, Qdrant restricts vector candidates with payload conditions:
mustis AND,shouldis OR, andmust_notexcludes every listed match. Usenestedfor conditions on the same array element; attach conditions throughfilter. -
News
OpenCode: set provider and model cache lifetimes
As of November 2026, OpenCode supports provider cache lifetimes with per-model overrides (v2.2.0, 2026-10-27). Anthropic accepts
5mor1h; OpenAI maps24hto retention. No TTL is sent by default. Inopencode.jsonc, setsettings.cache.ttl. -
News
Kiro: choose when automatic compaction starts
As of November 2026, Kiro CLI 3.3.0 (2026-11-12) lets V3 sessions choose an auto-compaction threshold: default 80%, range 0–100, at most two decimals. Workspace
.kiro/settings/cli.jsonoverrides the global default. Setkiro-cli settings compaction.autoCompactionThreshold <value>. -
News
Kiro: select Grok 4.7 with its context credit rates
As of November 2026, Kiro offers experimental Grok 4.7 (2026-11-10) on Pro, Pro+, Pro Max and Power: 500K context, 2.7x credits at ≤200K request tokens and 5.4x above 200K. Reload the model list, then choose
Grok 4.7. -
News
Haystack: configure document chunk size and overlap
As of November 2026, Haystack 3.5 DocumentSplitter defaults to 200 words, zero overlap, and zero minimum-fragment threshold. Choose word, sentence, token, or other units; fragments below the threshold merge backward. Start with
DocumentSplitter(split_by="word", split_length=200).
Missing something? Request a thread. Requests with the most votes become the next ones.