Skip to content

Instantly share code, notes, and snippets.

@mupadhyaya
mupadhyaya / v2_lesson_008_slide_7.py
Created July 2, 2026 04:41
Querying and Metadata Filtering - v2_lesson_008_slide_7.py
def run_semantic_query(collection):
# Retrieve relevant contexts using query texts matched with metadata filters
query_results = collection.query(
query_texts=["How can I resolve slow performance bottleneck issues?"],
n_results=1,
where={"tier": "backend"} # Metadata filter constraint
)
print("\n[QUERY OUTPUT]")
for idx, doc in enumerate(query_results['documents'][0]):
@mupadhyaya
mupadhyaya / v2_lesson_008_slide_5.py
Created July 2, 2026 04:41
Implementing Batch Vector Ingestion - v2_lesson_008_slide_5.py
def ingest_batch_documents(collection):
# Prepare highly granular records with rich metadata
documents = [
"In memory caching with Redis dramatically optimizes high-load microservice response times.",
"PostgreSQL indexes can be optimized using partial index structures on frequently accessed keys.",
"ChromaDB provides fast nearest neighbor searches using hierarchical navigable small world trees."
]
metadatas = [
{"module": "caching", "tier": "backend", "priority": "critical"},
@mupadhyaya
mupadhyaya / v2_lesson_008_slide_3.py
Created July 2, 2026 04:41
Initializing the Persistent ChromaDB Client - v2_lesson_008_slide_3.py
import chromadb
from chromadb.config import Settings
def initialize_database():
# Establish connection with disk serialization enabled
client = chromadb.PersistentClient(path="./chroma_data_store")
# Create a collection with explicit distance metrics
collection = client.get_or_create_collection(
name="engineering_knowledge_base",
@mupadhyaya
mupadhyaya / v2_lesson_008_slide_2.mmd
Created July 2, 2026 04:41
ChromaDB Ingestion & Query Lifecycle - v2_lesson_008_slide_2.mmd
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created July 2, 2026 04:39
Rimworld output log published using HugsLib
This file has been truncated, but you can view the full file.
Log uploaded on Thursday, July 2, 2026, 12:39:02 PM
Loaded mods:
Prepatcher(zetrith.prepatcher): 0Harmony(2.4.2), 0PrepatcherAPI(1.2.0), 0PrepatcherDataAssembly(1.0.0), PrepatcherImpl(1.0.0), Prestarter(1.0.0)
Harmony(brrainz.harmony)[mv:2.4.2.0]: 0Harmony(av:2.4.2,fv:2.4.1), HarmonyMod(2.4.2)
Faster Game Loading - Continued(Taranchuk.FasterGameLoading): FasterGameLoading(1.0.0)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)
Pipeline still running ...
PipelineRun is still running: Tasks Completed: 45 (Failed: 0, Cancelled 0), Incomplete: 2, Skipped: 7
[get-pr-number : parse-pr-url] + echo -n 7388
[get-pr-number : parse-pr-url] + tee /tekton/results/git_pr_number
[get-pr-number : parse-pr-url] 7388
[acquire-lease : create-lease] + calculate_duration_in_seconds 90m
[acquire-lease : create-lease] + '[' m == m ']'
[acquire-lease : create-lease] + TOTAL_DURATION_IN_SECONDS=5400
[acquire-lease : create-lease] + export TOTAL_DURATION_IN_SECONDS
https://netboltv7.blogspot.com/
Instruction :
Scroll down and choose one of the availaible link to watch
Note :
-*The link to football matches will available at 1 hour before the match started
-*Recommend to use an adblocker (ignore the popup that appear in the early, just wait for a seconds and a close button will appear)*