Skip to content

Instantly share code, notes, and snippets.

View rnditdev's full-sized avatar

Rodolfo Bonnin rnditdev

  • Argentina
View GitHub Profile
@shenfeng
shenfeng / gist:4016355
Created November 5, 2012 09:45
serialize/deserialize vector<string>
#include <iostream>
#include <vector>
using namespace std;
char* serialize(vector<string> &v, unsigned int *count) {
unsigned int total_count = 0;
for(int i = 0; i < v.size(); i++ ) {
@init27
init27 / app.py
Last active February 13, 2024 14:39
ArXiv Chat: Chat with the latest Arxiv papers
# Credit 🙏: I just used the example from langchain docs and it works quite well: https://python.langchain.com/en/latest/use_cases/question_answering.html
# Note 2: The Arxiv -> PDF logic is a bit messy, I'm sure it can be done better
# Note 3: Please install the following:
# To run:
# Save this in a `app.py`
# pip install arxiv PyPDF2 langchain chromadb
# The chat feature was shipped in H2O nightly this week, we will need to install from nightly link: