Skip to content

Instantly share code, notes, and snippets.

from langchain.document_loaders import YoutubeLoader
from langchain.indexes import VectorstoreIndexCreator
urls = [
("https://www.youtube.com/watch?v=fP6vRNkNEt0", "Prompt Injection"),
("https://www.youtube.com/watch?v=qWv2vyOX0tk", "Low Code-No Code"),
("https://www.youtube.com/watch?v=k8GNCCs16F4", "Agents In Production"),
("https://www.youtube.com/watch?v=1gRlCjy18m4", "Agents"),
("https://www.youtube.com/watch?v=fLn-WqliEQU", "Output Parsing"),
("https://www.youtube.com/watch?v=ywT-5yKDtDg", "Document QA"),
("https://www.youtube.com/watch?v=GrCFyyyAxCU", "SQL"),
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@PowellTravis
PowellTravis / API Data to MongoDB using Mongoose and Axios.md
Last active November 28, 2023 15:05
Using Mongoose and Axios Together to Upload API Data

BANNER

Using Mongoose and AXIOS to upload APU data to MongoDB

Uploading data using Axios and Mongoose can be hard at first. But when you really understand what you are doing you will be glad you are not reaching out to the API each time someone loads your webpage.

Installing the Packages

  1. Make sure you have nodejs and NPM installed, NPM comes with nodejs

npm install axios mongoose

@Priya997
Priya997 / SKF-Chatbot.md
Last active August 14, 2021 07:01
OWASP Security Knowledge Framework- Chatbot [GSOC '18]

SKF-Chatbot [GSOC'18]

What is SKF?

Security Knowledge Framework (SKF) is a tool that is used as a guide for building and verifying secure software. It can also be used to train developers about application security. The OWASP Security Knowledge Framework is an expert system web-application that uses the OWASP Application Security Verification Standard and other resources. It can be used to support developers in pre-development (security by design) as well as after code is released (OWASP ASVS Level 1-3).

Introduction of SKF-Chatbot:

What is Chatbot?

Chatbots are software agents that interact with the user in a conversation. A chatbot is a service which is provided by websites so that users can easily able to fetch information interactively. They can reach out to a large audience on messaging apps and be more effective. A chatbot provides a speedy and quick response and available around the clock. Chatbot will be an attempt to reduce the pain of the user and will help users in finding solutio

// VerifyToken.js
const jwt = require('jsonwebtoken'); // used to create, sign, and verify tokens
// Policy helper function
const generatePolicy = (principalId, effect, resource) => {
const authResponse = {};
authResponse.principalId = principalId;
if (effect && resource) {
const policyDocument = {};
@marcoscastro
marcoscastro / btc_usd.py
Created February 15, 2017 09:53
Python - Monitoramento do preço do bitcoin em dólares
'''
Get Bitcoin Value
http://api.coindesk.com/v1/bpi/currentprice.json
'''
import urllib.request, json, time
def obter_valor():
try:
url = "http://api.coindesk.com/v1/bpi/currentprice.json"