Skip to content

Instantly share code, notes, and snippets.

View bogdansolga's full-sized avatar

Bogdan Solga bogdansolga

View GitHub Profile
@bogdansolga
bogdansolga / keybase.md
Created November 7, 2014 05:25
keybase id

Keybase proof

I hereby claim:

  • I am bogdansolga on github.
  • I am bogdansolga (https://keybase.io/bogdansolga) on keybase.
  • I have a public key whose fingerprint is 4942 66FA 8FD8 6162 DE2B 57D0 9727 E7D1 F587 8CAE

To claim this, I am signing this object:

# You will need to install https://github.com/cpursley/html2markdown
defmodule Webpage do
@moduledoc false
defstruct [:url, :title, :description, :summary, :page_age]
end
defmodule WebSearch do
@moduledoc """
Web search summarization chain
defmodule PostgresHybridSearch do
@moduledoc """
Postgres Hybrid Search
Loosely based on:
- https://github.com/pgvector/pgvector-python/blob/master/examples/hybrid_search_rrf.py
- https://github.com/Azure-Samples/rag-postgres-openai-python/blob/e30ea96ca11ca6578ca38d3428594bd98d704900/src/fastapi_app/postgres_searcher.py#L2
- https://supabase.com/docs/guides/ai/hybrid-search
- https://github.com/toranb/rag-n-drop/blob/main/lib/demo/section.ex#L30
"""