This is a recipe for connecting to the CMS DiracX test deployment at:
https://cms-diracx-test18.cern.ch/
and using the DiracX CLI to authenticate and submit a simple job.
A pattern for building personal knowledge bases using LLMs.
This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.
Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.
| package main | |
| import ( | |
| "bufio" | |
| "bytes" | |
| "compress/gzip" | |
| "flag" | |
| "fmt" | |
| "io" | |
| "io/ioutil" |
| GOCMD=go | |
| GOTEST=$(GOCMD) test | |
| GOVET=$(GOCMD) vet | |
| BINARY_NAME=example | |
| VERSION?=0.0.0 | |
| SERVICE_PORT?=3000 | |
| DOCKER_REGISTRY?= #if set it should finished by / | |
| EXPORT_RESULT?=false # for CI please set EXPORT_RESULT to true | |
| GREEN := $(shell tput -Txterm setaf 2) |
| Mutt | |
| http://www.mutt.org/doc/manual/manual.html | |
| Select (tag) messages: shift+t (T) | |
| = (string) | |
| ~ (expression) | |
| ~b expr (message with expr in body) | |
| [b]body |
| """ | |
| MicroService configuration file. | |
| """ | |
| import os | |
| import socket | |
| from WMCore.Configuration import Configuration | |
| # globals | |
| HOST = socket.gethostname().lower() |
| # Copyright 2012 Erlware, LLC. All Rights Reserved. | |
| # | |
| # This file is provided to you under the Apache License, | |
| # Version 2.0 (the "License"); you may not use this file | |
| # except in compliance with the License. You may obtain | |
| # a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, |
| #!/usr/bin/env python | |
| #pylint: disable-msg=C0301,C0103,R0914,R0903 | |
| """ | |
| DAS command line tool | |
| """ | |
| __author__ = "Valentin Kuznetsov" | |
| import sys | |
| if sys.version_info < (2, 6): |