From 741113961e14034239cb3c543da82f4863357eb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kov=C3=A1cs=20=C3=81d=C3=A1m?= Date: Thu, 30 Jul 2026 16:50:56 +0200 Subject: [PATCH] style: apply ruff 0.16 markdown code-block formatting --- lettucedetect/integrations/langchain/README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lettucedetect/integrations/langchain/README.md b/lettucedetect/integrations/langchain/README.md index 75864c9..60e817b 100644 --- a/lettucedetect/integrations/langchain/README.md +++ b/lettucedetect/integrations/langchain/README.md @@ -29,9 +29,7 @@ vectorstore = Chroma.from_documents(docs, embeddings) # Create streaming RAG chain llm = ChatOpenAI(model="gpt-4o-mini", streaming=True) chain = RetrievalQA.from_chain_type( - llm=llm, - chain_type="stuff", - retriever=vectorstore.as_retriever(search_kwargs={"k": 3}) + llm=llm, chain_type="stuff", retriever=vectorstore.as_retriever(search_kwargs={"k": 3}) ) # Get context and stream with detection @@ -59,7 +57,7 @@ callback = LettuceStreamingCallback( context=context, question=question, check_every=10, - method="transformer" # or "rag_fact_checker" + method="transformer", # or "rag_fact_checker" ) # Use with any LangChain chain