You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
Denny Lee
dennyglee
data dork, scribe, geek, ultimate frisbee fan, mountain climber (barely!), wanna be cyclist... occasionally awake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"content": "Well, my dear, if I had a dollar for every time I've been asked this question, I'd be sipping a pi\u00f1a colada on my private yacht instead of standing behind this stove. But since you've asked, and I can see that little glimmer of curiosity in your eyes, I'll indulge you.\n\nNow, let's get one thing straight: I'm not going to tell you that one is better than the other. That would be like comparing a Picasso to a Monet - they're both masterpieces, but they appeal to different tastes. It's all about personal preference, you see.\n\nMontreal bagels, bless their hearts, are these petite, crispy, and slightly sweet beauties. They're boiled in honey-sweetened water and then baked in a wood-fired oven, which gives them this delightful, smoky flavor. They're a bit denser than their New York count
Locally Query DBRX using Foundation Model API (FMAPI) using OpenAI Python SDK
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RAG testing with different indexes via llama-index
RAG testing using different indexes with llamaindex
Different Indexes result in different answers
(Generated by Chat GPT 4.0)
Retrieval-Augmented Generation (RAG) systems, which combine a neural network-based generative model with a retrieval system, can use various types of indexes to retrieve relevant documents or passages. The type of index used can significantly impact the performance and output of the RAG system. Let's explore why using different indexes like Keyword Table Index, Vector Store Index, Summary Index, Tree Index, and Knowledge Graph Index for the same document results in different answers:
Validate Spark DataFrame data and schema prior to loading into SQL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Runs various checks to ensure data is valid (e.g. no NULL id and day_cd fields) and schema is valid (e.g. [category] cannot be larger than varchar(24))
The NGB Genome Browser is a web-based NGS data viewer with structural variations (SVs) visualization capabilities. This gist provides end-to-end Docker installation instructions and a demos script.
NGB Genome Browser Docker End-to-End Demo Script
The NGB Genome Browser is a web-based NGS data viewer with structural variations (SVs) visualization capabilities. This gist provides end-to-end Docker installation instructions and a demos script. This is an e2e version including downloading the sample VCF and BAM files.
Note, these instructions are derived from the following sources:
Connecting cqlsh to Cosmos DB Cassandra API on MacOS
As noted in the Introduction to Apache Cassandra API for Azure Cosmos DB, you can connect to the Cosmos DB Cassandra API using cqlsh. The instructions included in the Quick Start are setup for Windows (not MacOS) and there may be a versioning issue as the default cassandra-driver (installed via pip install cassandra-driver is for 3.3.1 instead of 3.4 (which is what is needed for Cosmos DB Cassandra API).
Install Cassandra via brew
This will ensure that you have the latest Cassandra-driver for CQL 3.4:
brew install cassandra
Cassandra will be installed in the /usr/local/Cellar/cassandra/$version folder
The Unofficial Throughput and Capacity Guestimate Guide for Azure Cosmos DB
Introduction
I have had a lot of great questions about how to estimate the throughput and storage capacity for Azure Cosmos DB. To get yourself up and running, the key best practices references are:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters