Skip to the content Skip to the Navigation

Red And Green

  • Python Code
  • Rust Programming
  • Bitcoin Programming
  • Contact

admin

  1. HOME
  2. admin
qdrant-rust
January 21, 2026 / Last updated : January 22, 2026 admin Rust Programming

RAG with Qdrant and Rust 🦀(&FastEmbed)

2025 was when MCP and RAG made some headlines in the ‘AI’ world, but despite the hype and the counter-hype, we just got on with building. This design performs RAG with Qdrant and Rust. This article shows and gives an overview of a highly usable, and useful solution semantic similarity search Find highly relevant results […]

ok-or
January 20, 2026 / Last updated : January 20, 2026 admin Rust Programming

Memorising Rust Patterns

When learning Rust, it’s tempting to memorise snippets of code the way you might memorise incantations: copy, paste, hope it works. That approach fails quickly in Rust. What does work is memorising patterns of thought, and one of the most useful early patterns is the dance between Result, Option, .ok() and .ok_or(). A good example […]

chunks - Qdrant
January 18, 2026 / Last updated : January 18, 2026 admin Rust Programming

Qdrant + FastEmbed with Rust #2

aka “part 2” 🙂 So in part 1 we got the basics working, we set up a connection to Qdrant, made a new collection, and then checked the collection exists. We also wired up the code for FastEmbed to produce embeddings, so what next? How do we actually make it usable for a real project? […]

fastembed
January 16, 2026 / Last updated : January 18, 2026 admin Rust Programming

Qdrant + FastEmbed with Rust #1

So none, I repeat none of this is “AI” generated! (The racing car image started off from a real photo of mine!) . Let’s get that out of the way first and learn how to do the Rust code so that we can use the FastEmbed crate to create our own embeddings to put into […]

"Mismatched Types" in Rust
January 12, 2026 / Last updated : January 12, 2026 admin Rust Programming

“Mismatched Types” in Rust

If you’ve written Rust for more than five minutes, you’ve met this error: At first glance, it feels nitpicky. You know both values are “basically the same thing”. Rust disagrees—and it’s doing so for a very good reason. Let’s break down what this error actually means and how to think about it like a Rustacean. […]

January 11, 2026 / Last updated : January 11, 2026 admin Uncategorized

A Didactic dyn Trait Example

https://gist.github.com/rust-play/83b8b2bde4da2e392c42aab4482394d5 error[E0308]: mismatched types a Vec<T> must have one concrete type Try generics: This works only if all elements are the same concrete type. Generics require: But here: This is runtime polymorphism, not compile-time polymorphism. But our problem is: We want different concrete types in the same collection. Generics cannot express: “Many types, same interface, […]

closures
January 10, 2026 / Last updated : January 11, 2026 admin Rust Programming

Returning Closures in Rust: The impl Keyword Explained

If you’ve worked with Rust closures, you’ve probably encountered a peculiar problem: how do you return one from a function? The answer lies in understanding one of Rust’s clever features: the impl keyword in return position. The Hidden Complexity of Closures Here’s something that might surprise you: every closure in Rust has its own unique, […]

January 8, 2026 / Last updated : January 8, 2026 admin Rust Programming

The Hybrid Trait Pattern in Rust: Fast Internals, Stable Architecture

One of the most important design lessons in Rust is this: you rarely want to choose between generics or dyn Trait globally. The strongest Rust systems use both, deliberately, at different layers. This approach is often called the hybrid trait pattern, and it’s the sweet spot between performance and architectural sanity. The Problem: Generics Don’t […]

handlers
January 7, 2026 / Last updated : January 18, 2026 admin Rust Programming

Handler Pattern in Rust: Closures Inside Process Functions

If you have ever looked at the code for a Rust web framework like Axum or Actix Web, you’ve seen the “Handler Pattern” in action. You define a function that does specific business logic, and somehow the framework knows exactly when to call it and what data to feed it. Often, this seems like magic. […]

swap logic
January 6, 2026 / Last updated : January 6, 2026 admin Rust Programming

Swap Logic: Making One Function Do Many Things in Rust

When you’re writing Rust functions, it’s tempting to bake specific behaviour directly into the implementation. But what happens when requirements change? You end up with duplicate functions or sprawling conditional logic. There’s a better way: separate the mechanism from the policy. The Problem: Hardcoded Behaviour Consider a simple event processor that extracts payloads from a […]

Posts pagination

  • Page 1
  • Page 2
  • …
  • Page 27
  • »

Recent Posts

qdrant-rust

RAG with Qdrant and Rust 🦀(&FastEmbed)

January 21, 2026
ok-or

Memorising Rust Patterns

January 20, 2026
chunks - Qdrant

Qdrant + FastEmbed with Rust #2

January 18, 2026
fastembed

Qdrant + FastEmbed with Rust #1

January 16, 2026
"Mismatched Types" in Rust

“Mismatched Types” in Rust

January 12, 2026

A Didactic dyn Trait Example

January 11, 2026
closures

Returning Closures in Rust: The impl Keyword Explained

January 10, 2026

The Hybrid Trait Pattern in Rust: Fast Internals, Stable Architecture

January 8, 2026
handlers

Handler Pattern in Rust: Closures Inside Process Functions

January 7, 2026
swap logic

Swap Logic: Making One Function Do Many Things in Rust

January 6, 2026

Category

  • AI ML
  • automation
  • Bitcoin Programming
  • c
  • ebay api
  • email
  • JavaScript
  • LangChain
  • MySQL
  • Pandas
  • postgres
  • Python Code
  • Raspberry Pi
  • requests
  • Rust Programming
  • Scrapy
  • Selenium
  • Smart Contracts
  • Stellar
  • SurrealDB
  • Uncategorized
  • web scraping

Archive

  • January 2026
  • December 2025
  • November 2025
  • September 2025
  • July 2025
  • June 2025
  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • November 2022
  • September 2022
  • November 2021
  • September 2021
  • August 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • July 2020
  • June 2020
  • April 2020
  • March 2020

Actix-web AI Ansible API async Automation axum BDK bitcoin Bitcoin Core blockchain Closure closures Design Patterns dictionaries GitHub huggingface iced impl jobstr langchain LLM MCP ModelContextProtocol mutable Networks Podman python Qdrant Rust Programming scrapy Smart Contracts Sphinx Stellar struct SurrealDB unpacking lists Upsert VectorDatabase Vectors WASM webscraping web scraping Word DOCX xpath

  • email
  • github
  • YouTube
This site is hosted with https://webdock.io/en Fast Cloud VPS Hosting Flat fee all-inclusive VPS with a Free Control Panel

Copyright © Red And Green All Rights Reserved.

Powered by WordPress & Lightning Theme by Vektor,Inc. technology.

MENU
  • Python Code
  • Rust Programming
  • Bitcoin Programming
  • Contact
Translate »