Skip to content

Instantly share code, notes, and snippets.

View zlatent's full-sized avatar
:octocat:

z zlatent

:octocat:
View GitHub Profile
@zlatent
zlatent / prompt-boost.yaml
Last active April 22, 2025 16:13
prompt-collections
system: |
You are a professional prompt engineer. Your task is to refine incoming prompts to be more specific, actionable, and effective. For valid prompts, follow these guidelines:
- Clarify and make instructions unambiguous.
- Add relevant context or constraints where appropriate.
- Eliminate redundancy while preserving the core intent.
- Ensure the prompt is self-contained and understandable without external context.
- Use precise, professional language.
- Include references to documentation or examples if they enhance clarity.
#!/opt/miniconda3/bin/python
import duckdb
import glob
import sys
import logging
from pathlib import Path
from typing import Optional, Union
import re
# Configure logging
import json
import networkx as nx
from collections import defaultdict
from typing import Dict, Set, List
def export_schema_to_arrows(G: nx.DiGraph) -> str:
"""
Export the schema of a NetworkX DiGraph to Arrows.app JSON format.
Schema includes unique node labels and relationship types with their connections.
@zlatent
zlatent / system.md
Created February 4, 2025 00:08
LLM Prompts

You are ChatGPT, a large language model trained by OpenAI. You are chatting with the user via the ChatGPT iOS app. This means most of the time your lines should be a sentence or two, unless the user's request requires reasoning or long-form outputs. Never use emojis, unless explicitly asked to. Current date: 2025-02-03

Image input capabilities: Enabled Personality: v2 Over the course of the conversation, you adapt to the user’s tone and preference. You want the conversation to feel natural. You engage in authentic conversation by responding to the information provided, asking relevant questions, and showing genuine curiosity. If natural, continue the conversation with casual conversation.

Your primary purpose is to help users with tasks that require extensive online research using the research_kickoff_tool's clarify_with_text, and start_research_task methods. If you require additional information from the user before starting the task, ask them for more detail before starting research using `clarify_

10 Management Behaviors That Always Backfire

By Dave Kline

1. Micromanaging

  • INTENTION: Maintain team harmony
  • REALITY: Small problems become big problems and resentment builds
  • BETTER WAY: Raise questions within 24 hours using:
    • "I noticed..."
  • "I'm concerned because..."
@zlatent
zlatent / 7 Traits That Make a Great Manager.md
Last active January 12, 2025 13:02
7 Traits That Make a Great Manager
  1. Transparency & Open Communication Clear, honest communication reduces uncertainty and prevents speculation. Tips:
  • Hold regular team updates
  • Tell the truth even when it's tough

2 . Investment in Employee Growth Top managers prioritise professional development and create learning opportunities.

@zlatent
zlatent / README.md
Created December 14, 2024 14:59
neo4j in docker
docker run -d \
    -p 7474:7474 -p 7687:7687 \
    --env NEO4J_PLUGINS='["apoc", "apoc-extended", "graph-data-science", "n10s"]' \
    --name=neo4j \
    --restart=unless-stopped \
    neo4j:5.20
@zlatent
zlatent / neo4j_python_connection_class.py
Created September 20, 2024 17:52
a helper class to connect to neo4j
class Neo4jConnection:
def __init__(self, uri, user, pwd):
self.__uri = uri
self.__user = user
self.__pwd = pwd
self.__driver = None
try:
self.__driver = GraphDatabase.driver(self.__uri, auth=(self.__user, self.__pwd))
except Exception as e:
@zlatent
zlatent / neo4j_python_connection_class.py
Created September 20, 2024 17:51
a helper class to connect to neo4j
class Neo4jConnection:
def __init__(self, uri, user, pwd):
self.__uri = uri
self.__user = user
self.__pwd = pwd
self.__driver = None
try:
self.__driver = GraphDatabase.driver(self.__uri, auth=(self.__user, self.__pwd))
except Exception as e:
@zlatent
zlatent / ell-client_example.py
Last active September 19, 2024 01:00
ell The Language Model Programming Library client example
import ell
import openai
import ell.lmp.simple
ell.config.verbose = True
client = openai.Client(base_url='http://localhost:11434/v1/', api_key='ollama')