dspy
dspy copied to clipboard
DSPy: The framework for programming—not prompting—language models
Hi, I am using retriever_model = ChromadbRM( collection_name='onkopedia_en', persist_directory='./chroma_db', openai_embed_model=DEFAULT_EMBED_MODEL, k=top_k ) and wanted to use from dspy.teleprompt import BootstrapFewShot teleprompter = BootstrapFewShot(metric=MetricWrapper, max_bootstrapped_demos=1, max_rounds=1) compiled_rag = teleprompter.compile(rag, trainset=trainset) But...
AttributeError: 'dict' object has no attribute 'augmented' error on multihop_finetune.ipynb notebook
Hi @okhat , Thanks for the nice framework! I am trying to get familiar with the framework by running some easy-to-run notebooks. I tried the https://github.com/stanfordnlp/dspy/blob/main/examples/qa/hotpot/multihop_finetune.ipynb notebook on Google colab...
Hi, Thanks for the nice framework! I tried to use it for the first time and get familiar with it in practice. I used the [Local Models & Custom Datasets](https://github.com/stanfordnlp/dspy/blob/main/skycamp2023.ipynb)...
I am using question->answer signature and trying to generate output fields by passing inputs text in input fields. And trying to use chainofthought to generate response. But it's working fine...
I got this simple code: ```python question = "What is the capital of Japan?" rag_with_assertions(question=question) ``` which throws this error `AttributeError: 'NoneType' object has no attribute 'clear'` because of this...
### Issue turns out the llms can vote to autonomously decide their optimisations ! - see here for a recent literature + concept review : https://arxiv.org/html/2402.01766v1 ### Solution - produce...
### Issue llm based "1-5" prompts suffer from numerous biases like confirmation bias. ### Solution Identify hosted endpoints on huggingface for specialized models that are more appropriate for dspy specific...
I'm testing some ReAct agents in a text-adventure game environment and running into an issue where the model will begin to hallucinate an observation when it is prompted for an...
A retriever module for Elastic Search build during the course of NLU - xCSS224U - Spring 2024. It returns top k document passage sorted based on standard elastic search -...
Makes CI better: 1. Caches poetry installation 2. Caches python install dependencies 3. Auto commit style fixes (That commit wont be tested, but the tests get run post-lint, so if...