tutorial

Generating replies using Langchain multiple chains and Gemini in NestJS

Generating replies using Langchain multiple chains and Gemini in NestJS

Introduction In this blog post, I demonstrated how to generate replies with multiple Langchain chains. Buyers can provide ratings and comments on sales transactions in auction sites such as eBay. When the feedback is negative, the seller must reply promptly to resolve the dispute. This demo aims to generate responses in the same language of the buyer according to the the tone (positive, neutral or negative) and topics. Previous chains obtain answers from the Gemini model and become the next chain's output. Similarly, the model receives the new prompt to generate the final reply to keep customers happy. Generate Gemini…
Read More
Python Basics 2: Datatypes

Python Basics 2: Datatypes

Datatype:Every value in Python has a datatype. The datatype is mainly the category of the data. There are basically 5 categories of datatypes; however, these categories have further classifications as well. 1.Numeric Type:a) Integer (int): positive or negative whole numbers (without a fractional part). Example: 10,-3,10000 b) Floating point (float): Any real numbers with 'decimal' points or floating point representation.Example: -3.14, 10.23 c) Complex Number: Combionation of real and imaginary number. Example: 2+3i [we don't use this that much] 2.Boolean Type(bool): Data with one of the two built-in values True or False. Often used in the comparison operations of logical…
Read More
Resolving the “Length of LOB Data (78862) to be Replicated Exceeds Configured Maximum 65536” Error

Resolving the “Length of LOB Data (78862) to be Replicated Exceeds Configured Maximum 65536” Error

Understanding the Error The error indicates that the LOB data size (78862 bytes) exceeds the configured maximum limit (65536 bytes) set for replication in SQL Server. This typically happens during the replication process, leading to the failure of data transfer. Common Causes Default Configuration Limits: SQL Server has default settings for the maximum size of LOB data that can be replicated. Large Data Inserts: Inserting large multimedia files or extensive text data can exceed the default LOB size limit. Inadequate Configuration Settings: The database settings might not be optimized for handling large LOB data, resulting in replication issues. Solutions to Resolve…
Read More
Why you should use Winston for Logging in JS

Why you should use Winston for Logging in JS

Winston JS is a popular open-sourced Javascript logging library used to write logs in code with support extending upto multiple transport. A transport helps the log to be present at multiple levels, be it storage at database level but logs on the console. The transports can be either console, database, files or remote servers making it highly flexible to get logs as per the requirements. The core transports that are part of Winston are Console, File and HTTP while there is option to write logs in third-party transports like MongoDb, CouchDb and Redis. The additional transports are written by the…
Read More
Creating In-Video Search

Creating In-Video Search

In-video search is ability to search for a specific content within a video. This can include searching for particular words spoken, objects shown or description of a scene. With the current advancement in transformers the process of in-video search have become more accurate and fairly simple. Although most of the transformers doesn’t have a joint embedding space for multiple modalities but there are few models like Meta’s ImageBind that a joint embedding space between text, image, audio, depth, thermal and IMU, or OpenAI’s CLiP model have joint embedding space between text and image. We can use these models to create…
Read More
In Excel, Insert Group Headers to Detail Data Rows in Each Group

In Excel, Insert Group Headers to Detail Data Rows in Each Group

Problem description & analysis The Excel worksheet below contains multiple vertical subtable groups, which are separated by a blank row. In each group, the 2nd cells of both row 1 and row 2 contain subtable group headers and row 3 contains column headers; there isn’t detailed data in either the 1st column or the 6th column: A B C D E F 1 ATLANTIC SPIRIT 2 Looe 3 Vessel Species Size Kg Date Location 4 POLLACK 2 2.5 23/04/2024 5 POLLACK 3 18.8 23/04/2024 6 POLLACK 41 5.4 23/04/2024 7 LING 3 1.9 23/04/2024 8 WHITING 2 0.4 23/04/2024 9…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.