fix image generation script
@@ -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"
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
After Width: | Height: | Size: 6.5 KiB |
|
After Width: | Height: | Size: 3.6 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 107 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 45 KiB |
|
After Width: | Height: | Size: 81 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 81 KiB |
|
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 58 KiB |
|
After Width: | Height: | Size: 85 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 61 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 33 KiB |