You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/tests/unit_tests
andersenchen 5267ebce2d
Add LLMCheckerChain (#281)
Implementation of https://github.com/jagilley/fact-checker. Works pretty
well.

<img width="993" alt="Screenshot 2022-12-07 at 4 41 47 PM"
src="https://user-images.githubusercontent.com/101075607/206302751-356a19ff-d000-4798-9aee-9c38b7f532b9.png">

Verifying this manually:
1. "Only two kinds of egg-laying mammals are left on the planet
today—the duck-billed platypus and the echidna, or spiny anteater."
https://www.scientificamerican.com/article/extreme-monotremes/
2. "An [Echidna] egg weighs 1.5 to 2 grams (0.05 to 0.07
oz)[[19]](https://en.wikipedia.org/wiki/Echidna#cite_note-19) and is
about 1.4 centimetres (0.55 in) long."
https://en.wikipedia.org/wiki/Echidna#:~:text=sleep%20is%20suppressed.-,Reproduction,a%20reptile%2Dlike%20egg%20tooth.
3. "A [platypus] lays one to three (usually two) small, leathery eggs
(similar to those of reptiles), about 11 mm (7⁄16 in) in diameter and
slightly rounder than bird eggs."
https://en.wikipedia.org/wiki/Platypus#:~:text=It%20lays%20one%20to%20three,slightly%20rounder%20than%20bird%20eggs.
4. Therefore, an Echidna is the mammal that lays the biggest eggs.


cc @hwchase17
2 years ago
..
agents Gracefully degrade when model asks for nonexistent tool (#268) 2 years ago
chains Add LLMCheckerChain (#281) 2 years ago
data Prompt from file proof of concept using plain text (#127) 2 years ago
docstore wip: add method for both docstore and embeddings (#119) 2 years ago
llms model laboratory (#95) 2 years ago
prompts Bug Fix (#221) 2 years ago
__init__.py initial commit 2 years ago
test_bash.py update branch name in gha (#274) 2 years ago
test_formatting.py initial commit 2 years ago
test_input.py chore: update ascii colors to work with dark mode (#152) 2 years ago
test_python.py combine python files (#256) 2 years ago
test_sql_database.py Support SQL statements that return no results (#222) 2 years ago
test_text_splitter.py Harrison/map reduce (#36) 2 years ago