Skip to content

Instantly share code, notes, and snippets.

@monotykamary
monotykamary / smart_crawl.exs
Last active August 3, 2024 15:51
Crawl Website to JSON with Elixir Langchain
#!/usr/bin/env elixir
Mix.install([
{:langchain, "~> 0.3.0-rc.0"},
{:httpoison, "~> 2.2"},
{:floki, "~> 0.36"},
{:jason, "~> 1.4"}
])
defmodule WebScraper do
@monotykamary
monotykamary / research_moa.exs
Last active July 30, 2024 05:26
Mixture of Agents with Elixir + Flow
#!/usr/bin/env elixir
Mix.install([
{:flow, "~> 1.2"},
{:jason, "~> 1.4"},
{:langchain, "0.3.0-rc.0"}
])
defmodule ResearchMoA do
alias LangChain.Chains.LLMChain
Verifying my Blockstack ID is secured with the address 1DBx6aysybKZgdyVVHkNVnLdaEX451XTtY https://explorer.blockstack.org/address/1DBx6aysybKZgdyVVHkNVnLdaEX451XTtY