PromptInfo: promptId: genWikiEntry name: Generate a Wiki Entry description: Generates a markdown wiki entry based on the context of the active note. author: SystemSculpt tags: wiki, markdown version: 0.0.2 bodyParams: max_tokens: 5000
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Mermaid + DuckDB for generating customer hierarchy diagrams | |
DuckDB version: 0.10.2 | |
Bill Wallis, 2024-05-09 | |
*/ | |
select version(); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from openai import OpenAI | |
# initialize the client but point it to TGI | |
client = OpenAI( | |
base_url="https://api-inference.huggingface.co/v1", | |
api_key="hf_xxx" # Replace with your token | |
) | |
chat_completion = client.chat.completions.create( | |
model="google/gemma-7b-it", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// npm i superagentai-js | |
import { SuperAgentClient } from "superagentai-js"; | |
const GITHUB_REPO_URL = "https://github.com/homanp/nagato"; | |
const PROMPT = `You are a helpful AI assistant that's an expert at answering questions about the following Github repository: ${GITHUB_REPO_URL}\n\nAlways use the functions provided to answer all questions by the user.`; | |
interface Agent { | |
id: string; | |
name: string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import autogen | |
from autogen.retrieve_utils import TEXT_FORMATS | |
from autogen.agentchat.contrib.retrieve_assistant_agent import RetrieveAssistantAgent | |
from autogen.agentchat.contrib.retrieve_user_proxy_agent import RetrieveUserProxyAgent | |
import chromadb | |
# Define the configuration list for different models | |
config_list = [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import warnings | |
import boto3 | |
import pyarrow as pa | |
import pyarrow.parquet as pq | |
from pyarrow.fs import S3FileSystem | |
warnings.filterwarnings("ignore") | |
from google.oauth2 import service_account | |
credentials = service_account.Credentials.from_service_account_file( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
PromptInfo: | |
promptId: genRelations | |
name: Generate relations (links) from context | |
description: Generate suggestions for relations given the context from the currently active note. | |
author: SystemSculpt | |
tags: relations, obsidian, linking | |
version: 0.0.2 | |
bodyParams: | |
max_tokens: 200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: (async () => { | |
const [{ default: Turndown }, readabilityModule] = await Promise.all([ | |
import('https://unpkg.com/turndown?module'), | |
import('https://cdn.skypack.dev/@mozilla/readability') | |
]); | |
const Readability = readabilityModule.Readability; | |
/* Optional vault name */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const path = require('path'); | |
const filePath = path.join(__dirname, 'config.txt'); | |
const logFilePath = path.join(__dirname, 'log.txt'); | |
function readVariables() { | |
try { | |
const fileContent = fs.readFileSync(filePath, 'utf-8'); |
NewerOlder