KeyStrokes
KeyStrokes
  • 48
  • 105 065
LeetCode Problem 235: Lowest Common Ancestor of a Binary Search Tree || FAANG Interview || Blind 75
LeetCode Problem 235: Lowest Common Ancestor (LCA) of a Binary Search Tree (BST) is a medium difficulty Blind 75 problem. Its a very good question to understand what Lowest Common Ancestor (LCA) and how to solve it using recursion.
Lowest common ancestor (LCA) is the first common node for the given nodes when traversing back to the root. This problem focuses on Binary Search Tree (BST) where for any given node, its value is greater than all the nodes in the left subtree, and is smaller than all the values in the right subtree.
We will use Java as the programming language to solve this problem. It is a common coding interview question asked by many companies - Amazon, Google, Facebook, etc, and is great question for FAANG interview preparation. Find more LeetCode solutions on KeyStrokes!
LeetCode hosts amazing questions that you can practice for interviews, and to sharpen your algorithmic skills!
At KeyStrokes, we will cover anything and everything about Computer Science. So make sure you subscribe to learn more! If you have any specific requests, please post them in comments.
🚨🚨🚨🚨🚨🚨 1:1's with KeyStrokes 🚨🚨🚨🚨🚨🚨
🤝 Fill out this form and get in touch with me! 🤝
👉 forms.gle/qPHE2cDuBXadNTdG6
👉 You can show your support by buying me coffee ☕️☕️
buymeacoffee.com/keystrokes
ko-fi.com/keystrokes
👉 Or through Patreon 🫡🫡
patreon.com/KeyStrokes
LeetCode Problem 235: Lowest Common Ancestor of a Binary Search Tree
leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree
All LeetCode Solutions:
github.com/doingthisalright/LeetCode-Problems
Code from the video:
github.com/doingthisalright/LeetCode-Problems/tree/main/src/Q00235_LowestCommonAncestorOfABinarySearchTree/solutions
LeetCode Discussion:
leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/solutions/3754453/java-100-success-recursion-detailed-video-explanation/
Follow on Twitter for more tips! Key__Strokes
Contact for Business Enquiries:
- forms.gle/u79MaojDvstGc77f6
- Email: doingthisalright@gmail.com
- Discord: KeyStrokes(Hashtag)0040
Companies that have asked this question:
- LinkedIn
- Facebook
- Amazon
- Apple
- Google
- Microsoft
Timestamps:
00:00 Introduction
00:27 Problem Statement
01:18 Required Conceptual Knowledge
01:28 Brainstorming
07:38 Pseudocode
08:45 Coding
10:51 Submitting to LeetCode
11:11 Outro/Conclusion
---
Music Credits:
🎶 Music Credits 🎶
Music from WHATFUNK: soundcloud.com/whatfunk/no-smoke
Image Credits
- Subscribe icons created by Freepik - Flaticon: www.flaticon.com/free-icons/subscribe
- UA-cam icons created by Freepik - Flaticon: www.flaticon.com/free-icons/youtube
- Developer icons created by Flat Icons - Flaticon - www.flaticon.com/free-icons/developer
- Algorithm icons created by Flat Icons - Flaticon - www.flaticon.com/free-icons/algorithm
- Goal icons created by Freepik - Flaticon - www.flaticon.com/free-icons/goal
---
Disclaimer: All opinions expressed in this video are those of the creator of this video. Using any information provided in this video is at your own risk, and the creator hold no responsibility and cannot be held liable if it causes any loss. Please do your own research and experiment well enough before using any content provided here.
#KeyStrokes #LeetCode #Blind75 #Algorithms #DataStructures #Coding #Programming #Java #Interview #TechInterview #besttimetobuyandsellstock #arrays #array #profit #LeetCode121 #leetcodequestionandanswers #leetcodequestions #leetcodesolution
Переглядів: 179

Відео

Coding Chess Game - ChatGPT vs ChatGPT Guess the Winner!
Переглядів 295Рік тому
Lets code a Chess game that is played by ChatGPT as both the players! We will use NextJS to create a ReactJS app in Typescript. GPT models are really amazing, and with the right prompt engineering you can almost do anything. Lets push the boundary by using the ChatGPT API, and making ChatGPT compete with itself in a game of chess! Innovations in Artificial Intelligence and Machine Learning is a...
Setup AutoGPT and Automate Your Goals - ChatGPT supercharged!
Переглядів 836Рік тому
Use AutoGPT and get a supercharged ChatGPT experience. Learn how to quickly setup AutoGPT and automate any goals that you provide. Innovations in Artificial Intelligence and Machine Learning is always amazing, and these innovative libraries just keep pushing boundaries. We'll setup AutoGPT, and give it goals to learn Python Programming Language, and create a summary of latest Quantum Computing ...
LeetCode Problem 17: Letter Combinations of a Phone Number || Java || FAANG Interview || Blind 75
Переглядів 216Рік тому
LeetCode Problem 17: Letter Combinations of a Phone Number is a medium difficulty Blind 75 problem. We discuss Breadth First Search (BFS) and Depth First Search (DFS) based solutions. Its a very good question to learn to how to generate combinations. We will use Java as the programming language to solve this problem. It is a common coding interview question asked by many companies - Amazon, Goo...
LeetCode Problem 121: Best Time to Buy and Sell Stock in Java - FAANG Coding Interview - Blind 75
Переглядів 302Рік тому
LeetCode Problem 121: Best Time to Buy and Sell Stock is an easy difficulty Blind 75 problem. We discuss a very simple solution to the problem, and it's a great phone interview screening and interview warmup question. We will use Java as the programming language to solve this problem. It is a common coding interview question asked by many companies - Amazon, Google, Facebook, etc, and is great ...
Personal ChatGPT with LangChain - Get Answers from your Documents - Embeddings and more!
Переглядів 4 тис.Рік тому
Learn how to personalize ChatGPT and get answers only from those documents. ChatGPT never fails to amaze, and combined with LangChain, you can almost do anything! We'll create a Chat like Web Application in ReactJS using NextJS, and create Backend APIs in ExpressJS, and leverage the power of LangChain and ChatGPT to index your documents (create embeddings) and query on them! ChatGPT has taken o...
LeetCode Problem 973: K Closest Points to Origin in Java - FAANG Coding Interview - Blind 75
Переглядів 518Рік тому
LeetCode Problem 973: K Closest Points to Origin is a medium difficulty Blind 75 problem. We discuss 3 different solutions to the problem - Array Sorting, Priority Queue and Optimized Priority Queue solutions. We need to find K closest points to origin from a given list of points. We will use Java as the programming language to solve this problem. It is a very good Priority Queue question to be...
LeetCode Problem 542: 01 Matrix in Java - FAANG Coding Interview - Blind 75 Question
Переглядів 452Рік тому
LeetCode Problem 542: 01 Matrix is a medium difficulty Blind 75 problem. We discuss 3 different solutions to the problem - DP, BFS and Brute Force. We need to find the distance of the closest "0" for every matrix element. We will use Java as the programming language to solve this problem. It is a very good Dynamic Programming (DP) question to begin with, and is a common coding interview questio...
LeetCode Problem 102: Binary Tree Level Order Traversal in Java - FAANG Coding Interview - Blind 75
Переглядів 272Рік тому
LeetCode Problem 102: Binary Tree Level Order Traversal is a medium Blind 75 problem. Returning a list of nodes per level can be hard, but we solve it here! In this problem we need to return a list of list, where each list is a set of nodes for each level. We will use Java as the programming language to solve this problem. It is a very common coding interview question asked by many companies - ...
Candy Machine Windows Edition! Launch Solana NFT Collection with Metaplex Candy Machine V3 and Sugar
Переглядів 8 тис.Рік тому
We cover all the quirks of Windows and use the new Metaplex Candy Machine V3 to launch a Solana NFT collection, and use Powershell to do everything 😌 🎊 Let's use the latest Metaplex Candy Machine V3 to launch a simple Solana NFT Collection using Sugar ✅ 🆕 Candy Machine V3 from Metaplex just keeps improving and today we make it work on Windows! 🆕 📈 Metaplex has been improving their offerings con...
LeetCode Problem 57: Insert Interval in Java - FAANG Coding Interview Questions - Blind 75
Переглядів 422Рік тому
LeetCode Problem 57: Insert Interval is a medium Blind 75 problem. This looks easy at first, but can be pretty confusing if not approached methodically. In this problem we need to insert a new interval in a list of given non-overlapping interval such that the result is non-overlapping as well. We will use Java as the programming language to solve this problem. It is a very common coding intervi...
Use ChatGPT API in your websites and apps - Create your own OpenAI Chat App - Easy Integration!
Переглядів 14 тис.Рік тому
ChatGPT API just got released! Learn how to integrate the OpenAI ChatGPT API in your own websites and apps. We'll create a Chat App and create a chat platform like OpenAI has. Be one of the first consumers of the API, and welcome to the future of applications with Artificial Intelligence. This video covers everything that you need to know to use ChatGPT API! Don't forget to use the power of Pro...
LeetCode Problem 53: Maximum Subarray in Java - FAANG Coding Interview Questions - Blind 75
Переглядів 556Рік тому
LeetCode Problem 53 Maximum Subarray is a medium Blind 75 problem where we need to find the max subarray sum for a given integer array. This requires coming up with an algorithmic that can work smartly. We discuss Brute Force and Optimal Solution that tackles this in one pass, and use Java as the programming language. It is a very common coding interview question asked by many companies - Amazo...
LeetCode Problem 20: Valid Parentheses in Java - FAANG Coding Interview Questions - Blind 75
Переглядів 872Рік тому
LeetCode Problem 20 Valid Parentheses is an easy Blind 75 problem where we need to check if a string is balanced. We will use Stack Data structure, and solve it in Java. We also talk about a solution using Maps, which makes the code more maintainable. It is a very common coding interview question asked by many companies - Amazon, Google, Apple, etc, and is great warm-up question for FAANG. Find...
Wallet Whitelist - Launch Solana NFT Collection using Metaplex Candy Machine V3 and Sugar
Переглядів 4,4 тис.Рік тому
Want to launch Solana NFT Collection, and have wallet based whitelist? 🤔 🎊 Let's use the latest Metaplex Candy Machine V3 to launch a Solana NFT Collection using Sugar and create whitelist groups by wallets! ✅ 🆕 Candy Machine V3 from Metaplex just keeps improving and today we explore more new features! 🆕 📈 Metaplex has been improving their offerings consistently. The most recent move from them ...
Layoffs? Prepare for Tech Interviews Fast and Survive Hiring Freeze - FAANG and others
Переглядів 3,2 тис.Рік тому
Layoffs? Prepare for Tech Interviews Fast and Survive Hiring Freeze - FAANG and others
Advent Of Code 2022 - Day 6 - Tuning Trouble (FAANG interview preparation without LeetCode)
Переглядів 538Рік тому
Advent Of Code 2022 - Day 6 - Tuning Trouble (FAANG interview preparation without LeetCode)
Advent Of Code 2022 - Day 5 - Supply Stacks (FAANG interview preparation without LeetCode)
Переглядів 434Рік тому
Advent Of Code 2022 - Day 5 - Supply Stacks (FAANG interview preparation without LeetCode)
Advent Of Code 2022 - Day 4 - Camp Cleanup (FAANG interview preparation without LeetCode)
Переглядів 368Рік тому
Advent Of Code 2022 - Day 4 - Camp Cleanup (FAANG interview preparation without LeetCode)
Advent Of Code 2022 - Day 3 - Rucksack Reorganization (FAANG interview preparation without Leetcode)
Переглядів 237Рік тому
Advent Of Code 2022 - Day 3 - Rucksack Reorganization (FAANG interview preparation without Leetcode)
Advent Of Code 2022 - Day 2 - Rock Paper Scissors (FAANG interview preparation - No Leetcode grind!)
Переглядів 321Рік тому
Advent Of Code 2022 - Day 2 - Rock Paper Scissors (FAANG interview preparation - No Leetcode grind!)
Advent Of Code 2022 - Day 1 - Calorie Counting - Solve these for FAANG Interviews, forget LeetCode!
Переглядів 301Рік тому
Advent Of Code 2022 - Day 1 - Calorie Counting - Solve these for FAANG Interviews, forget LeetCode!
Advent Of Code 2022 - Day 24 - Blizzard Basin - Solve this, and FAANG Interview is yours!
Переглядів 433Рік тому
Advent Of Code 2022 - Day 24 - Blizzard Basin - Solve this, and FAANG Interview is yours!
FAANG Coding Interview - LeetCode 19 - Remove Nth Node From End of List Solution - Blind 75 [Java]
Переглядів 252Рік тому
FAANG Coding Interview - LeetCode 19 - Remove Nth Node From End of List Solution - Blind 75 [Java]
FAANG layoffs everywhere - Save your tech job in 2023 recession! (Tips on how to not get fired)
Переглядів 342Рік тому
FAANG layoffs everywhere - Save your tech job in 2023 recession! (Tips on how to not get fired)
FAANG Interview Questions - LeetCode 14 - Longest Common Prefix [Java] - MAANG - Coding
Переглядів 252Рік тому
FAANG Interview Questions - LeetCode 14 - Longest Common Prefix [Java] - MAANG - Coding
Using Metaplex Candy Machine V3 and Sugar to Create Solana NFT Collection
Переглядів 13 тис.Рік тому
Using Metaplex Candy Machine V3 and Sugar to Create Solana NFT Collection
FAANG Interview Questions - LeetCode Problem 11 - Container With Most Water Solution [Java] - MAANG
Переглядів 199Рік тому
FAANG Interview Questions - LeetCode Problem 11 - Container With Most Water Solution [Java] - MAANG
FAANG Interview Questions - LeetCode Problem 15 - 3Sum [Java] - MAANG - Coding
Переглядів 202Рік тому
FAANG Interview Questions - LeetCode Problem 15 - 3Sum [Java] - MAANG - Coding
Aptos Blockchain For Beginners: What is it and How Does it Work?
Переглядів 594Рік тому
Aptos Blockchain For Beginners: What is it and How Does it Work?

КОМЕНТАРІ

  • @filipeBTC
    @filipeBTC 14 днів тому

    Nice video! Thou the images of the NFTs didnt load, I will try to figure out why!

  • @abdullahahmad9207
    @abdullahahmad9207 Місяць тому

    please make a video on how can we set the tokenPayment guard in our candy machine and then mint NFT from it via Candy Machine UI. Please make a video on this. Thanks in advance

  • @FrankDeLalla
    @FrankDeLalla Місяць тому

    Outstanding video. Thank you!

  • @Sayonora
    @Sayonora 2 місяці тому

    Coming from reddit, my honest opinion: from a beginner trying to learning coding by practicing, I know it's important to know theory, but I like to know the theory part in like 5 mins, and working on implementation on any language the next so that I get it thoroughly

  • @BradMills-pd5vq
    @BradMills-pd5vq 2 місяці тому

    Can I mint 1 NFT few time(2000 times) on sugar?

  • @bellwethermarketing795
    @bellwethermarketing795 2 місяці тому

    Tried to download the metaplex sample NFT collection but they have changed all the documentation, any clue? I have created my own NFT collection with images and Json files but I do not have the collection json or PNG to compare info. I know this is an older video but it still seems to be the most up to date on the process.

    • @digidave8094
      @digidave8094 2 місяці тому

      i am having this issue , please could someone help !!!

  • @harshnaruto3122
    @harshnaruto3122 2 місяці тому

    really nice video . 😊

  • @calypsoyao
    @calypsoyao 4 місяці тому

    i love you!

  • @cruby9
    @cruby9 5 місяців тому

    The sample nft docs are not available do you have another option?

  • @mattt1974UK
    @mattt1974UK 5 місяців тому

    Why did you skip the Passphrase? Is that something we should be setting or not?

    • @gaztill8920
      @gaztill8920 3 місяці тому

      Not necessary for testing, when you deploy for real yes note it down somewhere safe

  • @daveproxy80
    @daveproxy80 5 місяців тому

    Thanks for the very helpful video. Kindly make one about Candy guards

    • @abdullahahmad9207
      @abdullahahmad9207 Місяць тому

      I'm also looking for some video about tokenPayment candy guard implementation. Have u found some material on this ?? if there is any material please let me know. Thanks in advance.

  • @mendoncavic
    @mendoncavic 5 місяців тому

    awesome content, helped a lot, thanks!

  • @JustinAnarchsun
    @JustinAnarchsun 6 місяців тому

    i get this error when runing sugarcm3 upload: Error running command (re-run needed): Token Metadata Error: InstructionPackError: Failed to pack instruction data

  • @vyomraval3722
    @vyomraval3722 6 місяців тому

    i have implemented in jsx file, atlast it is not responding

  • @miguelangel8514
    @miguelangel8514 6 місяців тому

    Is this still working?

  • @HKS011
    @HKS011 6 місяців тому

    Thanks for the video. I keep running into an issue with sugar deploy. (Error running command (re-run needed): Missing collection item in cache) It seems that all the files in my cache are correct. Is this now outdated? I've run sugar upload a handful of times and each time I get successful asset pairing.

  • @WordBabyBuzz
    @WordBabyBuzz 6 місяців тому

    thanks thanks thanks

  • @dhyanrai5274
    @dhyanrai5274 7 місяців тому

    The best explanation ive watched for Tree Traversals

  • @0xkellan
    @0xkellan 7 місяців тому

    would you provide a guide how to use mintV2 instead of V1 version since I got an error as "invalid account version"?

  • @GomezBro
    @GomezBro 7 місяців тому

    this is for MAC, 99% of us use Windows, wheres that guide?

  • @awepress7464
    @awepress7464 7 місяців тому

    Hello thaks for the awesome video. This is what im getting: Error running command (re-run needed): Failed to parse cache file with error: missing field `candyGuard` at line 6 column 5 how do i fix this?

  • @memikko
    @memikko 8 місяців тому

    Good guide. even thought its giving error when minting but it might be some of my typo. will figure it out :D

  • @KimSalimVFX
    @KimSalimVFX 8 місяців тому

    how can i upload to a hosting? thanks.man

  • @kostaandonovski4633
    @kostaandonovski4633 8 місяців тому

    Thanks heaps, for this! When running sugar deploy, I am getting the following error: Error running command (re-run needed): Missing collection item in cache. I checked the cache, and everything is there, all the NFTs are listed, and they all have the same properties. DO you know what might be causing this?

    • @HKS011
      @HKS011 6 місяців тому

      same issue here

  • @CarlHaze
    @CarlHaze 8 місяців тому

    How you sign the NFT Collection to verify the creator ??

  • @svn2762
    @svn2762 8 місяців тому

    Is this process still up to date?

  • @haze6164
    @haze6164 8 місяців тому

    Where can I contact you?

  • @emrysaiwen183
    @emrysaiwen183 8 місяців тому

    your accent is too hard for none-enlish native too understand ...lol . but still a good lesson to learn .

  • @kavanih3192
    @kavanih3192 9 місяців тому

    Hi keystroke.... What's your discord or twitter handle

  • @barcelonaforever8725
    @barcelonaforever8725 9 місяців тому

    Hi key_strokes! Big thanks for your videos! will you be making a video on how to make a compressed solana nft collection and how to sell it ( is that also done through candy machine, like uncompressed nfts or not)

  • @srishtijain9458
    @srishtijain9458 9 місяців тому

    Amazing explanation. Thank You.

  • @snowboy1688
    @snowboy1688 10 місяців тому

    What is the name of IDE?

  • @crucea
    @crucea 10 місяців тому

    hello, great tutorial..one small problem, how can I public mint, after the candy guard is added I cannot mint even on CLI with sugar mint command I get this response: "Error running command (re-run needed): Payer is not the Candy Machine mint authority, mint disallowed.", but the mint authority in guard show command is the creator of the candy machine...in the sugar show command the mint autority is the candy guard address, until I added the candy guard I could mint in cli...after not...thanks in advance !

  • @xMedivh
    @xMedivh 11 місяців тому

    Hi, thanks for the video! I'm looking to integrate ChatGPT into my app. As of October 2023, is this guide still mostly valid? Thanks again for the awesome video! <3

  • @brandon_5678
    @brandon_5678 11 місяців тому

    Hi is anyone else getting permission errors (403 status code) when running sugar upload???????????????????

    • @renzramos122
      @renzramos122 8 місяців тому

      run "solana config set -u devnet"

  • @lisad4687
    @lisad4687 Рік тому

    I'm loving your videos Key Strokes! Thank you so much for making them! <3 However I'm getting the following error. I can give the whole error if needed. Unhandled Runtime Error UnknownProgramError: The program [CandyGuardProgram] at address [Guard1JwRhJkVH6XZhzoYxeBVQe872VH6QggF4BWmS9g] raised an error that is not recognized by the programs registered on the SDK. Please check the underlying program error below for more details. Source: Program > CandyGuardProgram [Guard1JwRhJkVH6XZhzoYxeBVQe872VH6QggF4BWmS9g] Caused By: Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 4: custom program error: 0x17a3

    • @lisad4687
      @lisad4687 Рік тому

      It is referring to a using MintV2? Program log: Instruction: Mint | Program log: (Deprecated as of 1.0.0) Use MintV2 instead | Program log: AnchorError thrown in program/src/instructions/mint.rs:22. Error Code: InvalidAccountVersion. Error Number: 6051. Error Message: Invalid account version. | Program Guard1JwRhJkVH6XZhzoYxeBVQe872VH6QggF4BWmS9g consumed 21258 of 972240 compute units | Program Guard1JwRhJkVH6XZhzoYxeBVQe872VH6QggF4BWmS9g failed: custom program error: 0x17a3

  • @davidezangrando34
    @davidezangrando34 Рік тому

    Hi man, very good video i like it! But i'm having a little problem when I'm trying to mint the Nfts. UnknownProgramError: The program [CandyGuardProgram] at address [Guard1JwRhJkVH6XZhzoYxeBVQe872VH6QggF4BWmS9g] raised an error that is not recognized by the programs registered on the SDK. Please check the underlying program error below for more details. Do you know how to solve it?

    • @lisad4687
      @lisad4687 Рік тому

      I'm loving your videos Key Strokes I'm getting the same error as above Unhandled Runtime Error UnknownProgramError: The program [CandyGuardProgram] at address [Guard1JwRhJkVH6XZhzoYxeBVQe872VH6QggF4BWmS9g] raised an error that is not recognized by the programs registered on the SDK. Please check the underlying program error below for more details. Source: Program > CandyGuardProgram [Guard1JwRhJkVH6XZhzoYxeBVQe872VH6QggF4BWmS9g] Caused By: Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 4: custom program error: 0x17a3

  • @Maniacsurvivor
    @Maniacsurvivor Рік тому

    Most of this does not work at the time of this comment.

  • @nguyentoan1837
    @nguyentoan1837 Рік тому

    Hi, I follow yours video step by step but at the last step "Mint" I got error "Signature is invalid" ? I'm not familiar with them. Could you give me some advice ? Thank you

  • @mbatterviruz7580
    @mbatterviruz7580 Рік тому

    Thank you!!! You are amazing!! Please make more solana vodeos. Also, how can i contact you

  • @noureddineloug2703
    @noureddineloug2703 Рік тому

    this the best content I have ever encounter with. Thank you very much for this, Are you continuing to cover up all DSA topics?

  • @Key_Strokes
    @Key_Strokes Рік тому

    1:1's and consultation with KeyStrokes - Interviews, Projects and anything really! Fill out this form and get in touch with me! 👉 forms.gle/qPHE2cDuBXadNTdG6 👈

  • @remotework-4596
    @remotework-4596 Рік тому

    Hi amazing! One thing though, did you generated the backend with express generator or build it step by step? thanks

  • @Key_Strokes
    @Key_Strokes Рік тому

    Do you think you can beat ChatGPT at chess? Update the project to add a Human vs ChatGPT mode! 🏆 Also, can you find the small bug in getWinner method? 🐞 1:1's and consultation with KeyStrokes - Interviews, ChatGPT Integration and anything really! Fill out this form and get in touch with me! 👉 forms.gle/qPHE2cDuBXadNTdG6 👈

  • @MrIndependent99
    @MrIndependent99 Рік тому

    Can you plz tell me how and where I can change the KS title icon on the web page? I redesigned the html and css.. this is the only thing I am stuck at..

  • @MrIndependent99
    @MrIndependent99 Рік тому

    Brother can you plz tell me how and where I can change the KS title icon on the web page? I redesigned the html and css.. this is the only thing I am stuck at..

  • @MichaelKazaragh
    @MichaelKazaragh Рік тому

    openai.error.AuthenticationError: <empty message> Can you help with this? And I don't have a share folder?

    • @Key_Strokes
      @Key_Strokes Рік тому

      Hello! Please double check your API key, and that you put it in the right place in the .env file. The share folder settings will be in docker. Just grant the whole autogpt folder that you downloaded from git. Please let me know if you need more assistance.

  • @Starenmathstv
    @Starenmathstv Рік тому

    Hi, thanks for the tutorial KeyStrokes! One question: I understand that ingest calls OpenAI API to calculate embeddings once. Then query loads them from disk. What is weird to me is that you pass the embeddings object again in the HNSWLib load call, does that call the OpenAI API again at this step? (and yes one OpenAI API call is made when you call the chain to answer the query I suppose)

    • @Key_Strokes
      @Key_Strokes Рік тому

      Hello! > What is weird to me is that you pass the embeddings object again in the HNSWLib load call, does that call the OpenAI API again at this step? (and yes one OpenAI API call is made when you call the chain to answer the query I suppose) I suppose you are talking about the time when we query, right? In that case we just load the embeddings back into memory, as its a separate API call than ingest. It shouldn't call the OpenAI API call again, as its just re-loading the embeddings from the file system which was already calculated when ingest API was called. I hope this helps! 🙌

    • @Starenmathstv
      @Starenmathstv Рік тому

      @@Key_Strokes clear! Thanks a lot my friend

  • @binchris
    @binchris Рік тому

    How would you do this but upload my own pdf

    • @Key_Strokes
      @Key_Strokes Рік тому

      Hello! Currently, the files are being put in the file system. You can easily build a UI which uploads a file first, and then ingests that doc, and then run any query on it. I just skipped that part, and put them on the file system, to keep the video on point. Uploading should be a simple web feature, and there are ample videos out there. Let me know if you need more help on this. :)

  • @rifleking6189
    @rifleking6189 Рік тому

    Hey KeyStrokes. Thanks for this awesome project. I am getting an error(Unhandled Runtime Error TypeError: Failed to fetch) for api/topics and api/query. Can you help me out with this. In terminal : [Error: ENOENT: no such file or directory, open '/Documents/react_chatbot/langchain_bot/backend/src/documents/Ethereum Whitepaper/index/data/args.json'] { errno: -2, code: 'ENOENT', syscall: 'open', path: '/Documents/react_chatbot/langchain_bot/backend/src/documents/Ethereum Whitepaper/index/data/args.json' }

    • @Key_Strokes
      @Key_Strokes Рік тому

      Hello! Did you check if the "'/Documents/react_chatbot/langchain_bot/backend/src/documents/Ethereum Whitepaper/index/data/args.json" file exists? Make sure you make the API call to Ingest it first, and then query on it.