emerging-trajectories VS lambdaprompt

Compare emerging-trajectories vs lambdaprompt and see what are their differences.

emerging-trajectories

Open source framework for using LLMs to forecast political, economic, and social events. (by wgryc)

lambdaprompt

λprompt - A functional programming interface for building AI systems (by approximatelabs)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
emerging-trajectories lambdaprompt
6 8
57 368
- 0.8%
9.1 5.6
13 days ago 4 months ago
Python Python
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

emerging-trajectories

Posts with mentions or reviews of emerging-trajectories. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-14.
  • Large language models (e.g., ChatGPT) as research assistants
    1 project | news.ycombinator.com | 27 Apr 2024
    I think LLMs can do a lot more than people assume, but they need to be given the proper frameworks.

    When was the last time a researcher, economist, etc. was given 10,000 papers and simply told "do some original work"? That's not how it works. Daniel (the author) provides some good examples where _streamlined_ work can happen, but again, this is pretty basic stuff.

    To push this further, though, imagine LLMs that fill in frameworks... A few steps here: (1) do a lit review, (2) fill in the framework, (3) discuss what might be missing, and maybe even try and fill in the missing information.

    I'm doing something like this with politics and economics (see: https://emergingtrajectories.com/) and it works generally well. I think with a ton more engineering, curating of knowledge bases, etc., one can get these LLMs to actually find some new "nuggets" of information.

    Admittedly, it's very hard, but I think there's something there.

  • Ask HN: Is RAG the Future of LLMs?
    2 projects | news.ycombinator.com | 14 Apr 2024
    RAG will have a place in the LLM world, since it's a way to obtain data/facts/info for relevant queries.

    Since you asked about alternatives...

    (a) "World models" where LLMs structure information into code, structured data, etc. and query those models will likely be a thing. AlphaGeometry uses this[1], and people have tried to abstract this in different ways[2].

    (b) Depending on how you define RAG, knowledge graphs could be a form of RAG or alternatively an alternative to them. Companies like Elemental Cognition[3] are building distinct alternatives to RAG that use such graphs and give LLMs the ability to run queries on said graphs. Another approach here is to build "fact databases" where, you structure observations about the world into standalone concepts/ideas/observations and reference those[4]. Again, similar to RAG but not quite RAG as we know it today.

    [1] https://deepmind.google/discover/blog/alphageometry-an-olymp...

    [2] https://arxiv.org/abs/2306.12672

    [3] https://ec.ai/

    [4] https://emergingtrajectories.com/

  • Long-form factuality in large language models
    2 projects | news.ycombinator.com | 30 Mar 2024
    For those interested in using search-augmented "reasoning", I implemented something similar in Emerging Trajectories[1], an open source package that forecasts geopolitical and economic events. We extract facts[2] from various websites (Google searches, news articles, RSS feeds) and have the LLM generate a hypothesis on a metric.

    We're tracking the info forecasts to see how well this does for future events. For example, we're pitting the LLMs against each other to predict March 2024 CPI[3].

    [1] https://emergingtrajectories.com/

    [2] Sample code: https://github.com/wgryc/emerging-trajectories/blob/main/eme...

    [3] https://emergingtrajectories.com/a/statement/28

  • Ask HN: What are some actual use cases of AI Agents?
    6 projects | news.ycombinator.com | 14 Feb 2024
    I'm working on research agents to help with economic, financial, and political research. These agents are open source (see: https://github.com/wgryc/emerging-trajectories).

    The use cases are pretty straight forward and low risk:

    1. Run a Google web search.

    2. Query a news API.

    3. Write a document based on the above, while citing sources.

    Here's an example of something written yesterday, where I'm forecasting whether July 2024 will be the hottest on record: https://emergingtrajectories.com/a/forecast/74

    This is working well in that the writeups are great and there are some "aha" moments, like the agent finding and referencing the The National Snow and Ice Data Center (NSIDC)... Very cool! I wouldn't have thought of it.

    Then there's the part where the agent also tells me that the Oregon Department of Transportation has holidays during the summer, which doesn't matter at all.

    So, YMMV, as they say... But I am more productive with these agents. I wouldn't publish anything formally without confirming and reviewing the content, though.

  • Ask HN: What have you built with LLMs?
    43 projects | news.ycombinator.com | 5 Feb 2024
    LLM agents to forecast geopolitical and economic events.

    - Site: https://emergingtrajectories.com/

    - GitHub repo: https://github.com/wgryc/emerging-trajectories

    I've helped a number of companies build various sorts of LLM-powered apps (chatbots mainly) and found it interesting but not incredibly inspiring. The above is my attempt to build something no one else is working on.

    It's been a lot of fun. Not sure if it'll be a "thing" ever, but I enjoy it.

lambdaprompt

Posts with mentions or reviews of lambdaprompt. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-05.
  • Ask HN: What have you built with LLMs?
    43 projects | news.ycombinator.com | 5 Feb 2024
    We're using all sorts of different stacks and tooling. We made our own tooling at one point (https://github.com/approximatelabs/lambdaprompt/), but have more recently switched to just using the raw requests ourselves and writing out the logic ourselves in the product. For our main product, the code just lives in our next app, and deploys on vercel.
  • RasaGPT: First headless LLM chatbot built on top of Rasa, Langchain and FastAPI
    13 projects | news.ycombinator.com | 8 May 2023
    https://github.com/approximatelabs/lambdaprompt It has served all of my personal use-cases since making it, including powering `sketch` (copilot for pandas) https://github.com/approximatelabs/sketch

    Core things it does: Uses jinja templates, does sync and async, and most importantly treats LLM completion endpoints as "function calls", which you can compose and build structures around just with simple python. I also combined it with fastapi so you can just serve up any templates you want directly as rest endpoints. It also offers callback hooks so you can log & trace execution graphs.

    All together its only ~600 lines of python.

    I haven't had a chance to really push all the different examples out there, but most "complex behaviors", so there aren't many patterns to copy. But if you're comfortable in python, then I think it offers a pretty good interface.

    I hope to get back to it sometime in the next week to introduce local-mode (eg. all the open source smaller models are now available, I want to make those first-class)

  • Replacing a SQL analyst with 26 recursive GPT prompts
    5 projects | news.ycombinator.com | 25 Jan 2023
    This is great~ There's been some really rapid progress on Text2SQL in the last 6 months, and I really thinking this will have a real impact on the modern data stack ecosystem!

    I had similar success with lambdaprompt for solving Text2SQL (https://github.com/approximatelabs/lambdaprompt/)

  • λprompt - Composing Ai prompts with python in a functional style
    1 project | /r/AiAppDev | 21 Jan 2023
  • LangChain: Build AI apps with LLMs through composability
    8 projects | news.ycombinator.com | 17 Jan 2023
    This is great! I love seeing how rapidly in the past 6 months these ideas are evolving. I've been internally calling these systems "prompt machines". I'm a strong believer that chaining together language model prompts is core to extracting real, and reproducible value from language models. I sometimes even wonder if systems like this are the path to AGI as well, and spent a full month 'stuck' on that hypothesis in October.

    Specific to prompt-chaining: I've spent a lot of time ideating about where "prompts live" (are they best as API endpoint, as cli programs, as machines with internal state, treated as a single 'assembly instruction' -- where do "prompts" live naturally) and eventually decided on them being the most synonymous with functions (and api endpoints via the RPC concept)

    mental model I've developed (sharing in case it resonates with anyone else)

    a "chain" is `a = 'text'; b = p1(a); c = p2(b)` where p1 and p2 are LLM prompts.

    What comes next (in my opinion) is other programming constructs: loops, conditionals, variables (memory), etc. (I think LangChain represents some of these concepts as their "areas" -> chain (function chaining), agents (loops), memory (variables))

    To offer this code-style interface on top of LLMs, I made something similar to LangChain, but scoped what i made to only focus on the bare functional interface and the concept of a "prompt function", and leave the power of the "execution flow" up to the language interpreter itself (in this case python) so the user can make anything with it.

    https://github.com/approximatelabs/lambdaprompt

    I've had so much fun recently just playing with prompt chaining in general, it feels like the "new toy" in the AI space (orders of magnitude more fun than dall-e or chat-gpt for me). (I built sketch (posted the other day on HN) based on lambdaprompt)

    My favorites have been things to test the inherent behaviors of language models using iterated prompts. I spent some time looking for "fractal" like behavior inside the functions, hoping that if I got the right starting point, an iterated function would avoid fixed points --> this has eluded me so far, so if anyone finds non-fixed points in LLMs, please let me know!

    I'm a believer that the "next revolution" in machine-written code and behavior from LLMs will come when someone can tame LLM prompting to self-write prompt chains themselves (whether that is on lambdaprompt, langchain, or something else!)

    All in all, I'm super hyped about LangChain, love the space they are in and the rapid attention they are getting~

  • Show HN: Sketch – AI code-writing assistant that understands data content
    9 projects | news.ycombinator.com | 16 Jan 2023
    From https://github.com/approximatelabs/sketch/blob/main/sketch/p... it appears that this library is calling a remote API, which obviates the utility of the demonstrated use case.

    Upon closer inspection, it looks like https://github.com/approximatelabs/sketch interfaces with the model via https://github.com/approximatelabs/lambdaprompt, which is made by the same organization. This suggests to me that the former may be a toy demonstration of the latter.

  • Show HN: Prompt – Build, compose and call templated LLM prompts
    2 projects | news.ycombinator.com | 31 Dec 2022

What are some alternatives?

When comparing emerging-trajectories and lambdaprompt you can also consider the following projects:

datasloth - Natural language Pandas queries and data generation powered by GPT-3

lmql - A language for constraint-guided and efficient LLM programming.

LiteratureReviewBot - Experiment to use GPT-3 to help write grant proposals.

kor - LLM(😽)

olympe - Query your database in plain english

com2fun - Transform document into function.

Helix - Engineering Consciousness

rasa-haystack

genetic-programming - Genetic programming in Common Lisp

langchain - ⚡ Building applications with LLMs through composability ⚡ [Moved to: https://github.com/langchain-ai/langchain]

squidgy-prompts

rasa - 💬 Open source machine learning framework to automate text- and voice-based conversations: NLU, dialogue management, connect to Slack, Facebook, and more - Create chatbots and voice assistants