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
2022-12-09 12:49:05 -08:00
..
agents Gracefully degrade when model asks for nonexistent tool (#268) 2022-12-06 21:52:48 -08:00
chains Add LLMCheckerChain (#281) 2022-12-09 12:49:05 -08:00
data Prompt from file proof of concept using plain text (#127) 2022-11-13 13:15:30 -08:00
docstore wip: add method for both docstore and embeddings (#119) 2022-11-20 16:23:58 -08:00
llms model laboratory (#95) 2022-11-08 22:17:10 -08:00
prompts Bug Fix (#221) 2022-11-29 07:03:40 -08:00
__init__.py initial commit 2022-10-24 14:51:15 -07:00
test_bash.py update branch name in gha (#274) 2022-12-06 22:28:50 -08:00
test_formatting.py initial commit 2022-10-24 14:51:15 -07:00
test_input.py chore: update ascii colors to work with dark mode (#152) 2022-11-16 22:05:28 -08:00
test_python.py combine python files (#256) 2022-12-04 15:57:36 -08:00
test_sql_database.py Support SQL statements that return no results (#222) 2022-11-29 08:28:45 -08:00
test_text_splitter.py Harrison/map reduce (#36) 2022-10-31 20:17:22 -07:00