LangChain & ChatGPT

Send Message via LangChain to ChatGPT Here we send a message via LangChain to ChatGPT and output the response. Perform Chaining with “chain” Use “chain” to link the model and the parser together. Template Prompts Prepare the prompts using a template. Use the template: The target language is externalized: Further Chaining Chain the template with model & parser: Server via FastAPI & REST Endpoint Create a server via FastAPI. The server loads the application (app.py), handles the REST request and outputs the translation: ...

July 18, 2024 · Aaron

Elastic Stack (Filebeat, Logstash, Elasticearch, Kibana) Tutorial

Logstash Logstash is an Event Processing Framework. With Logstach you can import data from different kind of input frameworks and sources. In the next step you can filter an modify the data and in the last step you can export the data to different kind of formats and frameworks e.g. you can read the data from a framework like Beats and forward the data to Elasticsearch for storage and further processing. Within Logstash you can process, filter and map the different input and output formats: ...

July 18, 2022 · Aaron

Turn on/off Elgato Key Light via Windows shortcut/button

Search for the IP address of your Key Light via Wireless Network Watcher e.g. 192.168.2.227 Your Key Light has a build in web server listening on port 9123 e.g. 192.168.2.227:9123 Send a GET request e.g. via Postman to the following endpoint to get more information about your Key Light: http://192.168.2.227:9123**/elgato/lights** Turn on the light by using the following PUT request. You need to set the ‘on’ value to ‘1’ instead of ‘0’. ...

May 27, 2022 · Aaron

Photography Basics + Sharp Long-Exposure- & Landscape Shots

Better quality: https://www.flickr.com/photos/aaron_kreis/13591624245/ Better quality: https://www.flickr.com/photos/aaron_kreis/35959541982/ To create razor-sharp long-exposure shots, you must know some basic concepts in photography and set or configure your camera accordingly. I’ll first explain the terms very superficially and later discuss the interaction of these terms, e.g., what influence the ISO value has on the exposure time, etc. Anyone who wants to create images like those shown above should know the following basic concepts and their dependencies on each other. ...

January 29, 2022 · Aaron

Angular & Cumulocity IoT Platform

The following topics are covered here: Installation of the Cumulocity IoT Platform (C8Y) CLI Project creation via the C8Y CLI Creation of components Setting up navigation (routing) Custom branding & using Bootstrap 4 instead of 3 (default) First of all, we need the Cumulocity (C8Y) Angular CLI (Command Line Interface). We can install the CLI as follows: npm install -g @c8y/cli Using the C8Y CLI, a new project can be created as follows: c8ycli new myApp ...

April 27, 2019 · Aaron

Angular Tutorial

This tutorial shows how the following guestbook application can be implemented: The following applications are required: Node.js npm Angular CLI Bootstrap Installing Angular CLI npm install -g @angular/cli Generate new project (guestbook) ng new guestbook Install the Bootstrap library via the npm package manager: npm install –save bootstrap Start developer server to test the application: ng serve The application is then available at the following address: http://localhost:4200/ ...

April 13, 2019 · Aaron

MongoDB Tutorial

MongoDB (derived from the English humongous, „gigantic“) is a document-oriented NoSQL database written in the C++ programming language. Because the database is document-oriented, it can manage collections of JSON-like documents. This allows many applications to model data in a more natural way, since the data can be nested in complex hierarchies while still remaining queryable and indexable. [Wikipedia] The MongoDB server can be started with the following command. However, the following folder must first be created: C:\data\db. This is where the database data is stored. mongod ...

March 31, 2019 · Aaron

OAuth 2.0 Process (high level)

The first image shows how a user, with their device via a mobile application, e.g. an email program from an unknown company, wants to query emails (Resources) from, for example, a Google Server (Resource Server). For this purpose, the user must enter their Google credentials within the mobile application. However, this is associated with certain risks, since a) the email program can store the password and b) the application can use the password to, for example, access other Google services. ...

March 21, 2019 · Aaron

JMeter Tutorial - Part 1

Download JMeter Start JMeter: C:\apache-jmeter-5.1.1\bin\ApacheJMeter.jar HTTP(S) Test Script Recorder To test a website’s performance with JMeter, we first need to record the workflow (request/response). Recording the workflow over an HTTPS connection is done as follows: JMeter provides a proxy server that listens on port 8888 by default. Since we are not interested in images, CSS files, etc., we exclude these: Since JMeter listens on port 8888, we need to forward internet traffic to the local proxy server: ...

February 13, 2019 · Aaron

Alexa Skill & AWS Lambda & npm Packages & Cumulocity

The following example shows the creation of a simple Alexa application (Skill) using the ‘Alexa Developer Console’ and ‘AWS Lambda’. Alexa Developer Console The ‘Alexa Developer Console’ helps us create the so-called ‘Interaction Model’. This model is used to describe the desired application and define the sentences and parameters to which Alexa should later respond. The programming of the logic is NOT done in the Developer Console but in AWS Lambda. ...

January 30, 2019 · Aaron