- Видео 7
- Просмотров 38 953
Carlo Van
Австралия
Добавлен 17 апр 2020
Welcome to my channel.
I create short, focussed programming tutorials.
I create short, focussed programming tutorials.
RAG with a UI in 10 Minutes
Build a RAG with a UI on AWS and host it for less than $1 / month.
I'll show you how to build RAG with a UI using AWS Bedrock, AWS Lambda and Streamlit to query your private data securely.
Source code:
github.com/thecarlo/rag-with-ui-streamlit-aws-bedrock
Add Authorization check to Lambda:
github.com/thecarlo/rag-with-ui-streamlit-aws-bedrock/blob/authorization/lambda-python/index.py
Blog post:
www.humankode.com/aws/build-a-rag-app-with-a-ui-and-private-data-on-aws/
00:00 - Introduction
02:14 - Create an S3 Bucket to Store Data
02:38 - Create a Pinecone Index to Store Vector Data
03:20 - Store API Key in AWS Secrets Manager
04:17 - Create an AWS Bedrock Knowledge Base
06:13 - Sync your data
06:19 - Que...
I'll show you how to build RAG with a UI using AWS Bedrock, AWS Lambda and Streamlit to query your private data securely.
Source code:
github.com/thecarlo/rag-with-ui-streamlit-aws-bedrock
Add Authorization check to Lambda:
github.com/thecarlo/rag-with-ui-streamlit-aws-bedrock/blob/authorization/lambda-python/index.py
Blog post:
www.humankode.com/aws/build-a-rag-app-with-a-ui-and-private-data-on-aws/
00:00 - Introduction
02:14 - Create an S3 Bucket to Store Data
02:38 - Create a Pinecone Index to Store Vector Data
03:20 - Store API Key in AWS Secrets Manager
04:17 - Create an AWS Bedrock Knowledge Base
06:13 - Sync your data
06:19 - Que...
Просмотров: 369
Видео
Next.js 14: Build Optimistic UIs with useOptimistic and Server Actions
Просмотров 3,1 тыс.5 месяцев назад
How to build fast UIs with Next.js 14 that load optimistically. I show you, step by step, how to build optimistic UIs with the useOptimistic hook and Server Actions in Next.js 14 0:00 Optimistic UI vs Pessimistic UI 0:22 Todo App Overview 2:37 Next.js Server Action for Toggle Todo 4:03 Next.js Server Action for Create Todo 4:44 Next.js Server Action for Delete Todo 5:10 Optimistic UI updates wi...
Mock Axios with Jest in Typescript and React (in 2 minutes)
Просмотров 4,3 тыс.Год назад
Mock Axios with Jest, Typescript and React, in just 2 minutes. First, I'll show you how to mock Axios with Jest in any Typescript function, which could be Node, React or Angular. Then, I'll show you how to mock an async component in React with React Testing Library and Jest. I'll show you how you can use Jest's built-in mocking features to mock Axios in Javascript or Typescript, using either No...
React + Typescript + Vite in 40 Seconds
Просмотров 3,1 тыс.Год назад
Create a React App with Typescript and Vite in less than 40 seconds. I'll also show you how to create path aliases with React and Vite. #react #vite #typescript
Custom Validation with Zod
Просмотров 1,9 тыс.Год назад
How to do custom validation with Zod, a validation framework for Typescript and Javascript. I'll show you how to validate that Mongo Object Id's are valid, and how to do Async validation with Zod. Moreover, I'll show you how to use Zod's refine and superrefine methods. Timecodes: 00:00 Intro 00:57 - Validating a Mongo ObjectId with Zod 03:53 - Zod Custom Validation Function 07:52 - Async Valida...
Run Stable Diffusion on Google Colab For Free in 2 Minutes
Просмотров 26 тыс.Год назад
Run Stable Diffusion on Google Colab For Free in 2 Minutes. The easiest way to run Stable Diffusion is to run it for free on Google Colab. Stable Diffusion with Google Colab link on Huggingface repository: github.com/huggingface/notebooks/tree/main/diffusers Lexica.art: lexica.art Timecodes: 0:00 - Intro 0:06 - Huggingface repository 0:23 - Stable Diffusion link for Colab 0:32 - Google Colab ex...
Biggest Issues With THIS in Javascript (+ How to Fix Them)
Просмотров 276Год назад
The biggest issues with "this" in Javascript, and how to fix them. In this video, I'll give you 5 rules you can use to determine the value of "this" in any situation that Javascript will throw at you. And then I'll give you examples of typical issues caused by this in javascript and how to fix and avoid them. Timecodes: 0:00 - Intro 0:30 - This Rule 1: Global Context 1:03 - This Rule 2: Functio...
Interesting tutorial! Thanks
Nice brother 🎉👍🏼 well explained for novices like myself
Not working, I can't get passed running Import Torch. I get AttributeError: module 'jax.random' has no attribute 'KeyArray'
best explanation on use optimistic by far ! thanks very much for your example it really helps to understand the concept.
there is an error on import torch from diffusers and also the astronaut rendering part too. I have already subscribed to the plan and it still happens. Can anyone help me out here
"use server" is for server actions so why are you adding it to whole components ?
'use server' can be used to specify that a component is a server component, and for server actions. don't confuse server components with server actions
It ensures that a server component never runs on the client.
Good examples thank you so much,, but for the delay you added of 500ms is just for test right?
Yes, correct
I have tried, still getting 2 console logs
Thanks for this amazing tutorial.
Thanks for the tutorial this is amazing
The tutorial is easy to understand and get running, but the images I generate using the same prompts are nowhere close to what I'm seeing on Lexica Art. This feels like a small step up from Craiyon.
Nice, thank you!
Cool. Thakx, dude!)
Well done, your way of teaching things is super organised, I'm a teacher and I can say it very informative video! I'm agreeing with you, and should behave like an and 😂 I've made a similar library for validating stuff that is analogous to zod but with pure functions and functional programming in mind and I came to get inspiration here. Thank you again!
thanks, for some reason I had a really hard time findin a sd colab. this helped me succeed.
That was helpful. Thank you! :)
This is great, keep it up :). Just a suggestion to use absolute paths everywhere in the project, it's more error prone to mock and maintain relative paths
I usually use aliased paths, but since this was a 2 minute tutorial with no complexity, and to keep things short and focussed, there's no need for aliased paths.
my scenario - I did not export any get functions in my code so in that case how will I test.? please help!
You'll have to export your function to test it
great work!
any way to change the model?
what are the negatives of using colab to run sd as opposed to running it locally? I'm looking for other options as running sd locally makes it very slow (my hardware is not really up to date). Do I have all of the same options to me available as if I were using sd locally? If so, I'd be prepared to pay for colab pro if needed.
did u find a solution?
@@abroad4299 nope
Hey! How can I use different models by running S. D. on Colab? Is there a solution for this?
The explanation you gave on how to run Stable Diffusion was very clear and practical. For this modality of working Stable Diffusion in Google Collab, how can PROMPT negatives be inserted?
if it's possible to provide a link to generate the image ? if its not very friendly for the commonly user to use script to generate it ?
Great Video! Very Helpful!!! Thanks, A lot!!
:))
awesome thank you!!
I've tried it before and never could get it to work. Seemed like I wasn't getting enough "for free" resources to actually do anything with it. Then again, I think I was trying one with a web GUI. I might give it another try.
wait what if I want to use img2img or video input?
better run automatic 1111 in collab with stable diffusion models
nice tutor, to the point and easy
super sir!!!
cool! best tut so far
Thanks for sharing Carlo. I avoid using `this` whenever I can. In Node.js it's all functional these days, rarely see anybody using a class based design (with a few exceptions). And in React we're using functional components over classes. So less of `this`
First!