Skip to content

Instantly share code, notes, and snippets.

View TomBener's full-sized avatar
👨‍💻

TomBen TomBener

👨‍💻
View GitHub Profile
@amix
amix / query_customer_feedback.py
Last active July 25, 2023 17:52
Use LlamaIndex and GPT-3 to query customer insights
import os
import logging
import sys
import textwrap
from llama_index import (
GPTKeywordTableIndex,
SimpleDirectoryReader,
LLMPredictor,
)
@ninehills
ninehills / chatpdf-zh.ipynb
Last active April 23, 2025 10:17
ChatPDF-zh.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ivorkchan
ivorkchan / ocr-gemini.py
Created August 20, 2024 21:45
OCR prompt with Gemini.
import google.generativeai as genai
import os
from dotenv import load_dotenv
import time
import signal
load_dotenv()
API_KEY = os.getenv("GOOGLE_API_KEY")
if not API_KEY: