Skip to content

Instantly share code, notes, and snippets.

@ricardosantos79
ricardosantos79 / ChatWithFile
Last active May 24, 2025 07:49
LLM Nautilus Script to chat with file contents
#!/usr/bin/env bash
# newline-delimited paths for selected files (only if local)
#a = $1 #NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
# newline-delimited URIs for selected files
#b = $2 #NAUTILUS_SCRIPT_SELECTED_URIS
# current location
#c = $3 #NAUTILUS_SCRIPT_CURRENT_URI
# position and size of current window
#d = $4 #NAUTILUS_SCRIPT_WINDOW_GEOMETRY
@ricardosantos79
ricardosantos79 / LMQL_ChatWith_AnnaPsychologist.py
Last active December 18, 2023 10:13
LMQL_ChatWith_AnnaPsychologist
"""
# Description:
___
"""
import _tools as Tools
import lmql
from dataclasses import dataclass
from txtai import Embeddings
@ricardosantos79
ricardosantos79 / LMQL_test.py
Last active November 20, 2023 10:39
Tests with LMQL
"""
# Description:
___
"""
import lmql
import pandas as pd
import _tools as Tools # Model Path shortcuts.
def test1 () :
"""
# Description:
___
"""
import _tools as Tools
scenario : Tools.PromptScenario = Tools.PromptScenario()