python

Tag: python

49 posts
【完成編】Valkey×FastAPI×Qdrantで構築するWordPressの超高速ハイブリッド検索システム
【完成編】Valkey×FastAPI×Qdrantで構築するWordPressの超高速ハイブリッド検索システム
半ちゃーはん特盛りテック別館 icon
半ちゃーはん特盛りテック別館
tech.ice-military.com

【完成編】Valkey×FastAPI×Qdrantで構築するWordPressの超高速ハイブリッド検索システム

■ 1. はじめに 前回の記事で構築したValkey(Redis互換の高速インメモリキャッシュ)環境。今回はこのValkeyをフル活用し、FastAPIとQdrant(ベクトルデータベース)を組み合わせた「超高速ハイブリ […]

·
Sep 14
·
ベクトル検索だけだと型番や固有名詞に弱い?ハイブリッド検索(BM25+ベクトル)で回答精度を向上させる方法(マルチサイト編)
ベクトル検索だけだと型番や固有名詞に弱い?ハイブリッド検索(BM25+ベクトル)で回答精度を向上させる方法(マルチサイト編)
半ちゃーはん特盛りテック別館 icon
半ちゃーはん特盛りテック別館
tech.ice-military.com

ベクトル検索だけだと型番や固有名詞に弱い?ハイブリッド検索(BM25+ベクトル)で回答精度を向上させる方法(マルチサイト編)

複数のWordPressサイトやブログメディアを運用している際、1台のPython(FastAPI + Qdrant)サーバーに検索基盤を集約しつつも、「ジャンルの異なるサイト同士のデータは完全に隔離したい」という要件は […]

·
Sep 13
·
SQLite is Enough. Lexical, Semantic and Hybrid Search with scrydb
SQLite is Enough. Lexical, Semantic and Hybrid Search with scrydb
M
Mahib's Margins
mahibulhaque.me

SQLite is Enough. Lexical, Semantic and Hybrid Search with scrydb

Scrydb, a Python library that enables lexical, semantic, and hybrid search within SQLite.

·
Sep 13
·
How to recover an NDI recording that never finalized (moov atom not found)
How to recover an NDI recording that never finalized (moov atom not found)
Ian Servin icon
Ian Servin
ianservin.com

How to recover an NDI recording that never finalized (moov atom not found)

If you landed here because a .mov from an NDI recorder application such as NDI Video Monitor won't open due to a hung/crashed recorder and ffmpeg says moov atom not found, the video is probably fine and you can get it back. After going through this a few times myself, I created a simple python...

·
Sep 13
·
ベクトル検索だけだと型番や固有名詞に弱い?ハイブリッド検索(BM25+ベクトル)で回答精度を向上させる方法(シングルサイト編)
ベクトル検索だけだと型番や固有名詞に弱い?ハイブリッド検索(BM25+ベクトル)で回答精度を向上させる方法(シングルサイト編)
半ちゃーはん特盛りテック別館 icon
半ちゃーはん特盛りテック別館
tech.ice-military.com

ベクトル検索だけだと型番や固有名詞に弱い?ハイブリッド検索(BM25+ベクトル)で回答精度を向上させる方法(シングルサイト編)

1. なぜ「ハイブリッド検索」が必要なのか? WordPressの標準検索機能に対し、「表記揺れでヒットしない」「精度が悪い」といった不満を解決するため、OpenAI + Qdrant + Groq による超高速なAI検 […]

·
Sep 12
·
rarelens: building a rare-disease variant triage platform, and the four things I got wrong
rarelens: building a rare-disease variant triage platform, and the four things I got wrong
K
Kemal's
kemal.yaylali.uk

rarelens: building a rare-disease variant triage platform, and the four things I got wrong

An end-to-end rare-disease variant triage platform: a Nextflow pipeline, three execution backends behind one API call, Terraform for two cloud tracks, and a phenotype-driven ranking measured against 10,178 published cases. Including the model metric that collapsed to exactly random once I removed the feature doing all the work.

·
Sep 12
·
気象表示TUIのlinecastが良さげかも
K
kawarimidoll.com
kawarimidoll.com

気象表示TUIのlinecastが良さげかも

気象関連の公開データをターミナルへ描画するlinecastの紹介です。

·
Sep 3
·
FastMCP 4 is GA
fastmcp icon
fastmcp

FastMCP 4 is GA

The new MCP, made Fast

·
Aug 31
·
Whisperでオフライン文字起こしできるBuzzが良さげかも
K
kawarimidoll.com
kawarimidoll.com

Whisperでオフライン文字起こしできるBuzzが良さげかも

音声や動画をオフラインで文字起こし・翻訳できるBuzzの紹介です。

·
Aug 29
·
Beyond the 2D Bounding Box: Why Bioimage Deep Learning Is a Completely Different Beast and How BiaPy Tames It
Beyond the 2D Bounding Box: Why Bioimage Deep Learning Is a Completely Different Beast and How BiaPy Tames It
K
Kemal's
kemal.yaylali.uk

Beyond the 2D Bounding Box: Why Bioimage Deep Learning Is a Completely Different Beast and How BiaPy Tames It

[latexpage]https://github.com/lynchaos/biapy-hubhttps://lynchaos-biapy-hub-app-hlcmfj.streamlit.app/ If you have spent your machine learning career optimizing ResNets or YOLO on ImageNet and COCO, here is an inconvenient truth: standard computer vision has spoiled you. In standard computer vision, a batch is usually an RGB triplet $(B, 3, H, W)$ where $H, W \le 1024$. The pixels are isotropic, the spatial coordinates...

·
Aug 24
·
Reducing Ambiguity in a SQL Agent using a domain glossary and RAG
G
Grokkist
grokkist.com

Reducing Ambiguity in a SQL Agent using a domain glossary and RAG

A domain glossary can give an LLM agent context it needs to finish a task, but when that is not enough to understand importance, RAG can reduce ambiguity

·
Aug 19
·
Nginx で『502 Bad Gateway』が出た時の原因特定フローチャートと速攻解決ガイド
Nginx で『502 Bad Gateway』が出た時の原因特定フローチャートと速攻解決ガイド
半ちゃーはん特盛りテック別館 icon
半ちゃーはん特盛りテック別館
tech.ice-military.com

Nginx で『502 Bad Gateway』が出た時の原因特定フローチャートと速攻解決ガイド

1. 導入:突然の502 Bad Gateway…!画面に広がる「白い絶望」 WebサイトやAPIの開発中、あるいは運用中のサーバーにアクセスした瞬間、画面にぽつんと表示される無機質なテキスト。 502 Bad Gate […]

·
Aug 14
·
Proof of Bluesky's Huge Bot Farms
Democracy on the Internet icon
Democracy on the Internet

Proof of Bluesky's Huge Bot Farms

How 8,500 Fake Accounts Are Boosting the Same Political Targets

·
Jul 30
·
bsky-to-gem
E
Ewan's Project Documentation
docs.ewancroft.uk

bsky-to-gem

Export public Bluesky posts to clean JSON format. No authentication required.

·
Jul 20
·
What rebuilding five aging papers from scratch actually proves
What rebuilding five aging papers from scratch actually proves
K
Kemal's
kemal.yaylali.uk

What rebuilding five aging papers from scratch actually proves

A reproducible, cloud-scale reanalysis of five peer-reviewed studies on cellular aging, reprogramming, and rejuvenation, and an honest account of what survived contact with a shared pipeline.

·
Jul 20
·
A LangGraph SQL agent with per-call observability
G
Grokkist
grokkist.com

A LangGraph SQL agent with per-call observability

Building a text-to-SQL agent on top of the canonical LangGraph tutorials, then routing every model call through my own OTel-emitting proxy so I can see what it actually does

·
Jul 6
·
1000以上のサイトから動画を保存できるreclipが良さげかも
K
kawarimidoll.com
kawarimidoll.com

1000以上のサイトから動画を保存できるreclipが良さげかも

yt-dlpを操作し1000以上のサイトから動画・音声を保存できるWeb UIのreclipの紹介です。

·
Jul 1
·
ターミナル表示の万能ツールボックスrich-cliが良さげかも
K
kawarimidoll.com
kawarimidoll.com

ターミナル表示の万能ツールボックスrich-cliが良さげかも

ターミナルでシンタックスハイライトやMarkdownレンダリングができるrich-cliの紹介です。

·
Jun 12
·
A Temperature Converter
D
DevDotDev.dev
devdotdev.dev/

A Temperature Converter

Asked to write a temperature converter in Python. Here's a flexible, extensible solution that handles Celsius, Fahrenheit, and Kelvin conversions. from abc import ABC, abstractmethod from enum import Enum from typing import Dict, Tuple, Optional class TemperatureUnit(Enum): CELSIUS = "C" FAHRENHEIT = "F" KELVIN = "K" class TemperatureConverterStrategy(ABC): """Abstract base class for temperature conversion strategies."""...

·
Jun 11
·
Remove Background Noise from Video Without Re-encoding: An Audio-Only Approach with DeepFilterNet3
Remove Background Noise from Video Without Re-encoding: An Audio-Only Approach with DeepFilterNet3
K
Kemal's
kemal.yaylali.uk

Remove Background Noise from Video Without Re-encoding: An Audio-Only Approach with DeepFilterNet3

A Python CLI tool that strips background noise from any video file using ML denoisers — while copying the video stream byte-for-byte. A 6 GB 4K file processes in minutes instead of hours.

·
Jun 9
·
A URL Shortener
D
DevDotDev.dev
devdotdev.dev/

A URL Shortener

A simple URL shortener that maps long URLs to short codes. Supports creating, retrieving, and expanding shortened URLs. import hashlib import string from abc import ABC, abstractmethod from typing import Dict, Optional from dataclasses import dataclass # Constants for our URL shortener BASE62_ALPHABET = string.ascii_letters + string.digits DEFAULT_SHORT_LENGTH = 7 DEFAULT_DOMAIN = "https://sho.rt/" @dataclass(frozen=True) class...

·
Jun 8
·
A Function That Estimates How Long a 5-Minute Fix Will Actually Take
D
DevDotDev.dev
devdotdev.dev/

A Function That Estimates How Long a 5-Minute Fix Will Actually Take

Asked to write a function that estimates the true duration of a '5-minute fix.' Here's what came out after letting the abstraction instincts loose. from dataclasses import dataclass, field from enum import Enum from typing import Optional, List, Dict import random import logging logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) class ComplexityLevel(Enum): TRIVIAL = 1 MODERATE = 2...

·
Jun 5
·
A Standup Meeting Summary Generator
D
DevDotDev.dev
devdotdev.dev/

A Standup Meeting Summary Generator

Asked for a standup meeting summary generator in Python. Here's an implementation that takes team member updates and produces a formatted summary. from dataclasses import dataclass, field from typing import List, Optional, Dict, Protocol from enum import Enum import datetime class UpdateCategory(Enum): YESTERDAY = "yesterday" TODAY = "today" BLOCKERS = "blockers" @dataclass class TeamMemberUpdate: name:...

·
Jun 5
·
DevHumor API: The Programmer’s Random Excuse Generator with Pluggable Validation Frameworks
D
DevDotDev.dev
devdotdev.dev/

DevHumor API: The Programmer’s Random Excuse Generator with Pluggable Validation Frameworks

A developer requested a simple tool to generate random excuses for why their code doesn't work. Instead of a 5-line function, we built an enterprise-grade excuse generator with abstract factory patterns, strategy implementations, and unnecessary async support. from abc import ABC, abstractmethod from enum import Enum from typing import List, Optional, Protocol import random import...

·
Jun 4
·
Bot de Discord Open Source em Python
SnowBlog icon
SnowBlog

Bot de Discord Open Source em Python

Projeto que eu estou desenvolvendo, e resolvi vir aqui compartilhar com vcs

·
May 30
·
GitHub Actions security in Python packages
A
Andrew Nesbitt
nesbitt.io

GitHub Actions security in Python packages

Thank you Dr. Zizmor

·
May 25
·
Build a Self-Aware Code Complexity Analyzer That Rates Your Own Shame Level
D
DevDotDev.dev
devdotdev.dev/

Build a Self-Aware Code Complexity Analyzer That Rates Your Own Shame Level

Create a tool that analyzes Python source code and assigns it a 'shame score' based on various code smell metrics, then generates brutally honest feedback about the developer's choices. The tool should parse code, detect anti-patterns, and deliver verdicts wrapped in passive-aggressive commentary. from typing import List, Dict, Tuple, Optional, Union, Any from abc import...

·
May 22
·
ストリーミング表データを操作できるTUIのnlessが良さげかも
K
kawarimidoll.com
kawarimidoll.com

ストリーミング表データを操作できるTUIのnlessが良さげかも

ログをテーブルに整形して操作できるTUIページャーnlessの紹介です。

·
May 20
·
nonsense
oh hey, it's owais icon
oh hey, it's owais

nonsense

Dev Log 53: 2026-05-13

·
May 13
·
1
SQLデータベースのTUIクライアントSQLitが良さげかも
K
kawarimidoll.com
kawarimidoll.com

SQLデータベースのTUIクライアントSQLitが良さげかも

多数のDBを操作できるTUIクライアントSQLitの紹介です。

·
May 13
·
MS Paint風TUIのTextual Paintが良さげかも
K
kawarimidoll.com
kawarimidoll.com

MS Paint風TUIのTextual Paintが良さげかも

ターミナル上で動作するMS PaintことTextual Paintの紹介です。

·
May 2
·
arXiv論文をTUIで追跡するarTuiが良さげかも
K
kawarimidoll.com
kawarimidoll.com

arXiv論文をTUIで追跡するarTuiが良さげかも

arXivの最新論文をターミナルで追跡・管理できるTUIアプリarTuiの紹介です。

·
Apr 26
·
Lastbegeisterung
hyperreal's Leaflets icon
hyperreal's Leaflets

Lastbegeisterung

Burden-enthusiasm

·
Apr 19
·
One git heatmap to rule them all
One git heatmap to rule them all
benswift.me icon
benswift.me
benswift.me

One git heatmap to rule them all

A Python script that merges contribution data from GitHub and multiple GitLab instances into a single interactive SVG heatmap.

·
Apr 8
·
Selenium Compiler
E
Ewan's Project Documentation
docs.ewancroft.uk

Selenium Compiler

An esoteric language with lunar/poetic syntax that compiles to C, featuring strong typing and imperative programming constructs.

·
Apr 5
·
Numlang
E
Ewan's Project Documentation
docs.ewancroft.uk

Numlang

An esoteric stack-based language that compiles to C via a Python compiler, using only numbers and punctuation.

·
Apr 5
·
Writing arbitrary records to a Bluesky PDS in Python
L
longwinded and winding notes
greengale.app/atdot.fyi

Writing arbitrary records to a Bluesky PDS in Python

Use atproto to write a record because you can

·
Mar 24
·
Fault : injecter du chaos dans vos microservices
U
Une tasse de café
une-tasse-de.cafe

Fault : injecter du chaos dans vos microservices

Découvrez fault, un proxy de chaos engineering qui injecte des pannes réseau entre vos services pour révéler leurs faiblesses avant la production.

·
Mar 22
·
@ewanc26/pkgs
E
Ewan's Project Documentation
docs.ewancroft.uk

@ewanc26/pkgs

Ewan's personal package monorepo — language-agnostic workspace with TypeScript, Rust, and Python packages.

·
Aug 19
·
Support-Tickets durchsuchbar machen mit RAG-Search - eine Anleitung
N
Nicky Reinert - Institut für digitale Herausforderungen
nickyreinert.de

Support-Tickets durchsuchbar machen mit RAG-Search - eine Anleitung

Ein praxisnaher Einblick in die Implementierung einer lokalen RAG-Architektur für Support-Tickets. Der Text beschreibt Pre-Processing, Embedding-Strategien mit Bi-Encodern und das Re-Ranking mittels Cross-Encodern unter Berücksichtigung von Datenschutz und Hardware-Limits.

·
Mar 4
·
Support-Tickets durchsuchbar machen mit RAG-Search - eine Anleitung
N
Nicky Reinert - Institut für digitale Herausforderungen
nickyreinert.de

Support-Tickets durchsuchbar machen mit RAG-Search - eine Anleitung

Ein praxisnaher Einblick in die Implementierung einer lokalen RAG-Architektur für Support-Tickets. Der Text beschreibt Pre-Processing, Embedding-Strategien mit Bi-Encodern und das Re-Ranking mittels Cross-Encodern unter Berücksichtigung von Datenschutz und Hardware-Limits.

·
Mar 4
·
bean-dumper
E
Ewan's Project Documentation
docs.ewancroft.uk

bean-dumper

An early Python experiment — unmaintained and kept for historical interest.

·
Apr 10
·
bluesky-avatar-updater
E
Ewan's Project Documentation
docs.ewancroft.uk

bluesky-avatar-updater

Automatically update your Bluesky avatar (and banner) every hour based on the time of day.

·
Apr 10
·
bluesky-gradient
E
Ewan's Project Documentation
docs.ewancroft.uk

bluesky-gradient

Generate 24 sky-gradient images (one per hour) for use as Bluesky avatars or banners.

·
Apr 10
·
bluesky-markov
E
Ewan's Project Documentation
docs.ewancroft.uk

bluesky-markov

A Bluesky bot that generates and posts Markov chain text based on a source account's posts. Unmaintained.

·
Apr 10
·
bluesky-ollama
E
Ewan's Project Documentation
docs.ewancroft.uk

bluesky-ollama

An AI-powered Bluesky bot that uses a local Ollama model to generate posts in the style of a source account.

·
Apr 10
·
mastodon-markov
E
Ewan's Project Documentation
docs.ewancroft.uk

mastodon-markov

A Mastodon bot that generates and posts Markov chain text based on a source account. Unmaintained.

·
Apr 10
·
text-to-pixel-image
E
Ewan's Project Documentation
docs.ewancroft.uk

text-to-pixel-image

A Python script that converts a string of text into a pixel art image with per-character colours. Unmaintained.

·
Apr 10
·
Stress testing Claude's language skills
vivshaw's webbed sight icon
vivshaw's webbed sight
vivsha.ws

Stress testing Claude's language skills

Polyglot or poly-not?

·
Feb 23
·