Skip to content

Instantly share code, notes, and snippets.

View pchalasani's full-sized avatar

Prasad Chalasani pchalasani

View GitHub Profile
@pchalasani
pchalasani / bsky-atproto-example.py
Created November 24, 2024 22:44
get bluesky data via python client lib "atproto"
# Simple example of getting bsky data via `atproto` python client
#
# First install: atproto, python-dotenv
# See python client docs here:
# https://github.com/MarshalX/atproto
#
from atproto import Client, IdResolver
import os
@pchalasani
pchalasani / langroid-RAG-citations.md
Last active January 24, 2025 13:54
Langroid document-chat (RAG) citations example

Install Langroid and run this doc-chat example script from the examples/ folder:

uv run examples/docqa/chat.py https://arxiv.org/pdf/2501.12948

Example output:

@pchalasani
pchalasani / langroid-function-calling.md
Created January 31, 2025 14:19
Langroid function-calling example

Run like this from the langroid-examples repo after setting up the env

uv run examples/basic/tool-extract-short-example.py -m ollama/mistral-small

Sample output:

image
@pchalasani
pchalasani / langroid-simple-web-search.md
Created February 1, 2025 16:41
Langroid: simple web search

Run like this from the langroid repo:

uv run examples/basic/chat-search.py -m groq/deepseek-r1-distill-llama-70b

Example screenshot:

image