Skip to content

Instantly share code, notes, and snippets.

View vinodkiran's full-sized avatar

Vinod Kiran vinodkiran

  • Hyderabad, India
View GitHub Profile
this is for a university class journal for a history student, topics discussed this week include 1) What is historiography ? 2) Historical positivism 3) approaches to history before Niebuhr and ranke 4) neibuhr's contribution to history as a discipline 5) Ranke's contribution to history as a discipline 6) features of Rankean history 7) critisicm of Rankean history 8) approaches to history in the ancient world 9) approaches to history during the enlightenment and romantic eras 10) marxist historiography 11) impact of marxism on historiography 12) Hegel's contribution to history
--------------
I need to write a short summary of the class discussion, generate 3-4 main themes that include concepts from the above topics
=======
Here’s a summary capturing three key themes based on the class discussion topics:
Summary of Class Discussion
@vinodkiran
vinodkiran / sample.txt
Created August 23, 2024 04:13
flowise DocStore public api
-- routes/documentstore/index.ts
// document store external routes
router.post('/load-store/:storeid/:loaderId', documentStoreController.uploadDocumentStoreFile)
router.post('/check-status/:uploadId', documentStoreController.checkUploadStatus)
-- constrollers/documentstore/index.ts
const uploadDocumentStoreFile = async (req: Request, res: Response, next: NextFunction) => {
try {
import { ConsoleCallbackHandler } from "langchain/callbacks";
import { MongoDBAtlasVectorSearch } from "langchain/vectorstores/mongodb_atlas";
import { OpenAI } from "langchain/llms/openai";
import { RetrievalQAChain } from "langchain/chains";
import { MongoClient } from "mongodb";
import { CohereEmbedding s} from "langchain/embeddings/cohere";
import dotenv from "dotenv";
import { OpenAI } from "langchain/llms/openai";
import { OpenAIEmbeddings } from "langchain/embeddings/openai";
import { VectorDBQAChain } from "langchain/chains";
import dotenv from "dotenv";
import { Client } from "@elastic/elasticsearch";
import { ElasticVectorSearch } from "langchain/vectorstores/elasticsearch";
import { DirectoryLoader } from "langchain/document_loaders/fs/directory";
import { TextLoader } from "langchain/document_loaders/fs/text";
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.apache.poi.ss.usermodel.*;
import java.io.File;
import java.io.IOException;
import java.util.Iterator;
public class MyClass {
public static final String SAMPLE_XLSX_FILE_PATH = "./sample-xlsx-file.xlsx";
public static void main(String[] args) throws IOException, InvalidFormatException {
using System;
namespace CSharpBtree
{
public class BTree
{
public Node rootNode;
//assumption: array is sorted and not null
public BTree(int[] array)
<ul class="nav nav-tabs">
//for each
<li class="active"><a href="#'php'" data-toggle="tab">'php'</a></li>
//end for
</ul>
<div class="tab-content">
<div id="'.$row["category_id"].'" class="tab-pane fade in active">
</div>
</div>
@vinodkiran
vinodkiran / gist:14897d774d18e71529b3
Created November 25, 2014 14:31
drools-camel-server on tomcat8 (Windows OS)
25-Nov-2014 19:56:39.003 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.0.14
25-Nov-2014 19:56:39.003 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Sep 24 2014 09:01:51
25-Nov-2014 19:56:39.003 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.0.14.0
25-Nov-2014 19:56:39.003 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows 8
25-Nov-2014 19:56:39.003 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 6.2
25-Nov-2014 19:56:39.003 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
25-Nov-2014 19:56:39.003 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.7.0_25-b17
25-Nov-2014 19:56:39.003 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
25-Nov-2014 19:56:40.378 INFO [main] org.apache.catalina.core.Apr
/*
* Copyright 2013 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2014 JBoss Inc
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~