gomate-community / rageval

Evaluation tools for Retrieval-augmented Generation (RAG) methods.
Apache License 2.0
81 stars 9 forks source link

Add FakeLLM for test. #39

Closed faneshion closed 4 months ago

faneshion commented 4 months ago

use the FakeListLLM from langchain.llms.fake to test each module.

from langchain.llms.fake import FakeListLLM

model = FakeListLLM({responses: ["I'll callback later.", "You 'console' them!"]})