Skip to content

Instantly share code, notes, and snippets.

View bobvanluijt's full-sized avatar

Bob van Luijt bobvanluijt

View GitHub Profile
{
Get {
Paragraph (
ask: {
question: "what is the distance between the frame and the outside wall of the bowl?",
properties: ["text"]
},
limit:1
){
text
@bobvanluijt
bobvanluijt / first-result.json
Last active June 16, 2021 11:57
NEN - first result in JSON
{
"Paragraph": [
{
"_additional": {
"answer": {
"certainty": 0.76,
"result": "50 mm"
}
},
"inDocument": [
{
"Paragraph": [
{
"inDocument": [
{
"number": "NEN-EN 15774 en",
"title": "Food processing machinery - Machines for processing fresh and filled pasta (tagliatelle, cannelloni, ravioli, tortellini, orecchiette and gnocchi) - Safety and hygiene requirements"
},
{
"number": "NEN-EN 13621 en",
[
"Product A",
"Product B",
"Product C",
"Product D"
]
@bobvanluijt
bobvanluijt / setup-docker-with-GPU-support.sh
Last active June 8, 2023 10:54
Setup Docker with GPU support on Ubuntu
# STEP 1
$ sudo apt update && \
sudo apt -qq -y install \
gcc \
make \
software-properties-common \
apt-transport-https \
ca-certificates \
curl \
git \
{
Get {
Paragraph(
ask: {
question: "Where is the States General of The Netherlands located?"
properties: ["content"]
}
limit: 1
) {
_additional {
{
Get {
Paragraph(
nearText: {
concepts: ["Italian food"]
}
limit: 50
) {
content
order
{
Get {
Paragraph(
ask: {
question: "What was Michael Brecker's first saxophone?"
properties: ["content"]
}
where: {
operator: Equal
path: ["inArticle", "Article", "title"]
{
Get {
Paragraph(
nearText: {
concepts: ["jazz saxophone players"]
}
limit: 25
) {
content
order
@bobvanluijt
bobvanluijt / gist:d438585ed80e487ba0bba29da3a46044
Created June 29, 2022 15:41
Nginx config file to make Weaviate read only
##
# Read only Weaviate config.
# Update the comments in the config file below
#
# The setup assumes that Nginx can find the Weaviate instance
# or cluster on http://weaviate-server:4001 (this can be updated)
#
##
server {
listen 4000 default_server; # port 4000 is where the nginx config listens to