CREATE TABLE recipes(
title text,
ingredients text,
directions text,
link text,
source text,
ner text,
This file contains hidden or 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
#include "postgres.h" | |
#include "fmgr.h" | |
#include "utils/builtins.h" | |
PG_MODULE_MAGIC; | |
PG_FUNCTION_INFO_V1(char_count_c); | |
Datum | |
char_count_c(PG_FUNCTION_ARGS) |
This file contains hidden or 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 xata.client import XataClient | |
from sentence_transformers import SentenceTransformer | |
import sys | |
import time | |
xata = XataClient() | |
# expect the query as the first argument | |
if len(sys.argv) != 2: | |
print("Usage: python hybrid_search.py <query>") |
This file contains hidden or 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 json | |
import sys | |
import os | |
# create dest directories | |
def ensure_directories(dest_dir): | |
def ensure_dir(dir): | |
if not os.path.exists(dir): | |
os.makedirs(dir) |
I hereby claim:
- I am tsg on github.
- I am tudor_g (https://keybase.io/tudor_g) on keybase.
- I have a public key ASDGbXTP31qAPvVyBpru7063YfSmT4BjDtKkaP7vecsxAAo
To claim this, I am signing this object:
This file contains hidden or 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
###################### Auditbeat Configuration Example ######################### | |
# This is an example configuration file highlighting only the most common | |
# options. The auditbeat.reference.yml file from the same directory contains all | |
# the supported options with more comments. You can use it as a reference. | |
# | |
# You can find the full configuration reference here: | |
# https://www.elastic.co/guide/en/beats/auditbeat/index.html | |
#========================== Modules configuration ============================= |