Skip to content

Commit

Permalink
Merge pull request #1 from VowpalWabbit/add_rl_chain
Browse files Browse the repository at this point in the history
Initial commit of rl_chain code
  • Loading branch information
olgavrou authored Aug 22, 2023
2 parents 0fa4516 + a6f9dcc commit e942330
Show file tree
Hide file tree
Showing 11 changed files with 1,988 additions and 0 deletions.
28 changes: 28 additions & 0 deletions libs/langchain/langchain/chains/rl_chain/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
from langchain.chains.rl_chain.pick_best_chain import PickBest
from langchain.chains.rl_chain.base import (
Embed,
BasedOn,
ToSelectFrom,
SelectionScorer,
AutoSelectionScorer,
Embedder,
Policy,
VwPolicy,
)

import logging


def configure_logger():
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
ch = logging.StreamHandler()
formatter = logging.Formatter(
"%(asctime)s - %(name)s - %(levelname)s - %(message)s"
)
ch.setFormatter(formatter)
ch.setLevel(logging.INFO)
logger.addHandler(ch)


configure_logger()
Loading

0 comments on commit e942330

Please sign in to comment.