graph TD
A[Start] --> B[Are debug logs enabled?]
B -- No --> C[Enable debug logs and restart]
B -- Yes --> D["If the assistant uses LLM Router,
was the appropriate command predicted?"]
D -- No --> E[Look into LLM Router configuration]
D -- Yes --> F["Did command generator
trigger SearchAndReply command?"]
F -- No --> G["Look into modifying
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
/****************************** | |
Code.gs | |
by vcidst | |
Add this to your spreadsheet that is linked to the form. | |
You can add this by going to Tools > Script Editor. | |
Edit accordingly. Everything in between the quotes is regular HTML. |
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
# This gist is transcribed from a talk by Sean Zicari | |
# Talk: Use Curses, don't swear https://www.youtube.com/watch?v=eN1eZtjLEnU | |
# | |
# I haven't written the function which he used to fetch quotes from the web | |
# This only presents the barebones structure of his application | |
# | |
# If debugging a curses application messes up your terminal, type `tset` to reset terminal | |
import curses |
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
1 0x00000000 0 $print instruction Direction "Down" 02.12.2017 02:58:33 | |
1 0x00000000 640 URB urb {…} 02.12.2017 02:58:33 | |
1 0x00000000 24 URB_HEADER UrbHeader {…} 02.12.2017 02:58:33 | |
1 0x00000000 2 unsigned short Length 128 02.12.2017 02:58:33 | |
1 0x00000002 2 URB_FUNCTION Function URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER (9) 02.12.2017 02:58:33 | |
1 0x00000004 4 USBD_STATUS Status { Status=SUCCESS (0); Type="Success" } 02.12.2017 02:58:33 | |
1 0x00000004 4 StatusCode Status SUCCESS (0) 02.12.2017 02:58:33 | |
1 0x00000008 0 $print instruction Type "Success" 02.12.2017 02:58:33 | |
1 0x00000008 8 unsigned __int64 UsbdDeviceHandle 0 02.12.2017 02:58:33 |
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
/* | |
This sample illustrates how to grab images and process images asynchronously, i.e., | |
while the application is processing a buffer, the acquistion of the next buffer is done | |
in parallel. | |
The sample uses a pool of buffers that are passed to a stream grabber to be filled with | |
image data. Once a buffer is filled and ready for processing, the buffer is retrieved from | |
the stream grabber, processed, and passed back to the stream grabber to be filled again. | |
Buffers retrieved from the stream grabber are not overwritten in the background as long as | |
they are not passed back to the stream grabber. | |
*/ |
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
// @bombayraincalls | |
// https://twitter.com/bombayraincalls | |
// tweets when it is raining in bombay | |
// generously supported by /r/Mumbai | |
// original source by dariusk | |
// https://github.com/dariusk/examplebot | |
// Our Twitter library | |
var Twit = require('twit'); |
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 nltk | |
from nltk.corpus import brown | |
import json | |
prepchoices = nltk.ConditionalFreqDist((v[0], p[0]) | |
for (v, p) in nltk.bigrams(brown.tagged_words(tagset="universal")) | |
if v[1] == "VERB" and p[1] == "ADP") | |
pc = dict() | |
for word in prepchoices.conditions(): |
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
// Our Twitter library | |
var Twit = require('twit'); | |
var weather = require('weather-js'); | |
// We need to include our configuration file | |
var T = new Twit(require('./config.js')); | |
// this function posts to twitter that it is rainy | |
function rainTwitter(today) { | |
var tweets = [ |
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
# Usage: python data-upload.py --docs_folder data/documents | |
import logging | |
from langchain.embeddings.openai import OpenAIEmbeddings | |
from langchain.text_splitter import RecursiveCharacterTextSplitter | |
from langchain.vectorstores import Milvus | |
from langchain.document_loaders import DirectoryLoader, TextLoader | |
from pathlib import Path | |
from langchain.schema import Document | |
from typing import List |