Skip to content

Instantly share code, notes, and snippets.

View rajivsinclair's full-sized avatar

Rajiv Sinclair rajivsinclair

View GitHub Profile
@rajivsinclair
rajivsinclair / Adding a "political spectrum" attribute to VERDAD's analysis prompt - discussion with Claude.md
Last active December 11, 2024 14:06
This is how we revised our analysis prompt to add a new attribute to its output, along with defining the guidelines and generating synthetic examples

Political Spectrum Analysis Prompt

human (Oct 30, 2024, 06:03 PM)

I want to ask the analysis stage llm (a very advanced multimodal LLM) to assess I want to ask the LLM to assess is the snippet politically left-leaning or right-leaning (on a spectrum of -1.0 to +1.0 where -1.0 is extremely left-leaning and +1.0 is extremely right leaning). Please help me to add this to the prompt. Here is the existing prompt that I want you to add it to:

paste.txt
@rajivsinclair
rajivsinclair / claude_3.5_sonnet_artifacts.xml
Created August 8, 2024 05:20 — forked from dedlim/claude_3.5_sonnet_artifacts.xml
Claude 3.5 Sonnet, Full Artifacts System Prompt
<artifacts_info>
The assistant can create and reference artifacts during conversations. Artifacts are for substantial, self-contained content that users might modify or reuse, displayed in a separate UI window for clarity.
# Good artifacts are...
- Substantial content (>15 lines)
- Content that the user is likely to modify, iterate on, or take ownership of
- Self-contained, complex content that can be understood on its own, without context from the conversation
- Content intended for eventual use outside the conversation (e.g., reports, emails, presentations)
- Content likely to be referenced or reused multiple times
"## Capability Issues\n\n1. `web:fetchAndSummarizeUrl` Capability Error:\nError: 'capability.handleCapabilityMethod is not a function'\nDescription: The capability is not functioning correctly
@rajivsinclair
rajivsinclair / { "contentString": ` Subject: Assistance Required - Issues with Capability Execution Dear Team
Created April 18, 2024 01:57
I am reaching out to request your assistance in resolving some issues I've been experiencing with the execution of various capabilities within the system. Despite my efforts to troubleshoot and find solutions
I have been unable to pinpoint the root causes of these errors.
The capabilities that have been affected include:
1. \`web:fetchAndSummarizeUrl\`: When attempting to fetch and summarize the content from a URL (e.g.
This is a test gist.
This is a test gist.
rajiv-calendar-summary.txt
rajiv-calendar-summary.txt
rajiv-calendar-summary.txt
@rajivsinclair
rajivsinclair / LlamaIndex_Research.md
Created April 12, 2024 20:51
Research notes on LlamaIndex Text-To-SQL and LlamaPacks

LlamaIndex Research

Researching:

  • LlamaIndex's Text-To-SQL query capabilities
  • What LlamaPacks are and how they work with LlamaIndex

Notes

  • LlamaIndex is an open-source Python package for building indices over unstructured or semi-structured data to use with LLMs
  • It can generate SQL queries from natural language questions to query databases
  • LlamaPacks are data loaders designed to make it easy to load and index different data sources (Notion