fix image generation script

This commit is contained in:
generall
2024-02-14 21:25:53 +01:00
parent f2afa13b60
commit 914a88cdb0
27 changed files with 22 additions and 7 deletions
+10
View File
@@ -2,6 +2,8 @@
# directory of the current script
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
@@ -14,6 +16,14 @@ function get_value_from_md() {
local key=$1
local file=$2
local value=$(grep -m 1 "^$key:" "$file" | sed "s/^$key: //")
# remove comments from the value, starting with #
value=$(echo "$value" | sed 's/#.*//')
# remove leading and trailing spaces
value=$(echo "$value" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')
echo "$value"
}
+9
View File
@@ -57,6 +57,15 @@ function check_file_exists_and_new() {
exit 0
fi
fi
abs_path_file=$(realpath "${file}")
abs_path_to_image=$(realpath "${PATH_TO_IMAGE}")
if [ "${abs_path_file}" == "${abs_path_to_image}" ]; then
echo "Source image and destination image are the same. Please provide a different destination"
exit 1
fi
}
check_file_exists_and_new "${IMG_DESTINATION}/social_preview.jpg"
@@ -4,11 +4,7 @@ draft: false
slug: dust-and-qdrant
#short_description:
description: Using AI to Unlock Company Knowledge and Drive Employee Productivity
preview_image: /case-studies/dust/preview.png # Change this
social_preview_image: /case-studies/dust/preview.png # Optional image used for link previews
title_preview_image: /case-studies/dust/preview.png # Optional image used for blog post title
small_preview_image: /case-studies/dust/preview.png # Optional image used for small preview in the list of blog posts
preview_image: /case-studies/dust/preview.png
date: 2024-02-06T07:03:26-08:00
author: Manuel Meyer
featured: false
+1 -1
View File
@@ -4,7 +4,7 @@ draft: false
slug: qdrant-n8n
short_description: Integration demo
description: Building a RAG-based chatbot using Qdrant and N8N to chat with a codebase on GitHub
preview_image: /blog/qdrant-n8n/preview/preview.jpg
preview_image: /blog/qdrant-n8n/preview.jpg
date: 2024-01-06T04:09:05+05:30
author: Anush Shetty
featured: false
@@ -3,7 +3,7 @@ title: Loading Unstructured.io Data into Qdrant from the Terminal
slug: qdrant-unstructured
short_description: Loading Unstructured Data into Qdrant from the Terminal
description: Learn how to simplify the process of loading unstructured data into Qdrant using the Qdrant Unstructured destination.
preview_image: /blog/qdrant-unstructured/preview/preview.jpg
preview_image: /blog/qdrant-unstructured/preview.jpg
date: 2024-01-09T00:41:38+05:30
author: Anush Shetty
tags:
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.8 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 33 KiB