from langchain import SQLDatabase, SQLDatabaseChain
from langchain.prompts.prompt import PromptTemplate
from langchain.chat_models import ChatOpenAI
from langchain.memory import ConversationBufferWindowMemory
from langchain.chains import ConversationChain, LLMChain
from langchain.embeddings import OpenAIEmbeddings
from langchain.chains import RetrievalQAWithSourcesChain, RetrievalQA
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// Example based actions/core documentation | |
const core = require('@actions/core'); | |
const { decode } = require('jsonwebtoken'); | |
const { axiosClient } = require('./axioshelp'); | |
getIDTokenAction().catch((error) =>{ | |
console.log('errors?',error) | |
}) | |
async function getIDTokenAction() { |
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
// Sketchy loading of the jsrsasign library into Postman Sandbox | |
var navigator = {}; //fake a navigator object for the lib | |
var window = {}; //fake a window object for the lib | |
eval(pm.globals.get("jsrsasign-js")); //import javascript jsrsasign | |
var currentTime = +new Date(); // the current time in milliseconds | |
var issuedAtTimeSeconds = currentTime/1000; | |
var expirationTimeSeconds = currentTime/1000 + 3600; | |
// Grab the JWK from the Environment and change to JSON object |
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
package azurex | |
import ( | |
"context" | |
"errors" | |
"fmt" | |
"os" | |
"strings" | |
"github.com/Azure/azure-sdk-for-go/profiles/2020-09-01/resources/mgmt/subscriptions" |
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
const express = require('express') | |
const os = require('os') | |
const app = express() | |
const port = process.env.APP_PORT || 80 | |
var response = '<html><body> <h1>' | |
response += 'Hello from' + os.hostname() + '</h1>' | |
response += 'Type:' + os.type() + '<br/>' |
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
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{ | |
default: Turndown | |
}, { | |
default: Readability | |
}]) => { | |
/* Optional vault name */ | |
const vault = ""; | |
/* Optional folder name such as "Clippings/" */ |
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
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{ | |
default: Turndown | |
}, { | |
default: Readability | |
}]) => { | |
/* Optional vault name */ | |
const vault = ""; | |
/* Optional folder name such as "Clippings/" */ |
NewerOlder