medpromptjs
Preparing search index...
LLMLoop
Class LLMLoop
Hierarchy (
View Summary
)
BaseChain
LLMLoop
Index
Constructors
constructor
Properties
_
map
Doc
Template
_
map
Query
Template
_
reduce
Chain
Template
chat_
model
container
llm
prompt
runnable
string
Expression
Accessors
description
map
Doc
Template
map
Query
Template
name
reduce
Chain
Template
template
Methods
_
print
Values
camelize
camel
To
String
chain
check
Assertion
check
Mention
check
Negation
extract
Objects
By
Key
find
Dates
And
Convert
To
Time
Elapsed
initialize
print
Values
resolve
snake_
case
string
To
Boolean
text
Splitter
Constructors
constructor
new
LLMLoop
(
container
:
any
)
:
LLMLoop
Parameters
container
:
any
Returns
LLMLoop
Properties
_
map
Doc
Template
_mapDocTemplate
:
string
= ...
_
map
Query
Template
_mapQueryTemplate
:
string
= ...
_
reduce
Chain
Template
_reduceChainTemplate
:
string
= ...
chat_
model
chat_model
:
boolean
container
container
:
any
llm
llm
:
LLM
prompt
prompt
:
any
runnable
runnable
:
any
string
Expression
stringExpression
:
string
= ''
Accessors
description
get
description
()
:
string
Returns
string
set
description
(
value
:
string
)
:
void
Parameters
value
:
string
Returns
void
map
Doc
Template
get
mapDocTemplate
()
:
string
Returns
string
set
mapDocTemplate
(
template
:
string
)
:
void
Parameters
template
:
string
Returns
void
map
Query
Template
get
mapQueryTemplate
()
:
string
Returns
string
set
mapQueryTemplate
(
template
:
string
)
:
void
Parameters
template
:
string
Returns
void
name
get
name
()
:
string
Returns
string
set
name
(
value
:
string
)
:
void
Parameters
value
:
string
Returns
void
reduce
Chain
Template
get
reduceChainTemplate
()
:
string
Returns
string
set
reduceChainTemplate
(
template
:
string
)
:
void
Parameters
template
:
string
Returns
void
template
get
template
()
:
string
Returns
string
set
template
(
value
:
string
)
:
void
Parameters
value
:
string
Returns
void
Methods
_
print
Values
_printValues
(
obj
:
any
)
:
string
Parameters
obj
:
any
Returns
string
camelize
camelize
(
str
:
string
)
:
string
Parameters
str
:
string
Returns
string
camel
To
String
camelToString
(
camelCase
:
string
)
:
string
Parameters
camelCase
:
string
Returns
string
chain
chain
(
input
:
any
)
:
Promise
<
boolean
>
Parameters
input
:
any
Returns
Promise
<
boolean
>
check
Assertion
checkAssertion
(
expression
:
string
,
context
:
any
)
:
Promise
<
boolean
>
Parameters
expression
:
string
context
:
any
Returns
Promise
<
boolean
>
check
Mention
checkMention
(
expression
:
string
,
context
:
any
)
:
Promise
<
boolean
>
Parameters
expression
:
string
context
:
any
Returns
Promise
<
boolean
>
check
Negation
checkNegation
(
expression
:
string
,
context
:
any
)
:
Promise
<
boolean
>
Parameters
expression
:
string
context
:
any
Returns
Promise
<
boolean
>
extract
Objects
By
Key
extractObjectsByKey
(
obj
:
any
,
key
:
string
)
:
any
[]
Parameters
obj
:
any
key
:
string
Returns
any
[]
find
Dates
And
Convert
To
Time
Elapsed
findDatesAndConvertToTimeElapsed
(
text
:
string
)
:
string
Parameters
text
:
string
Returns
string
initialize
initialize
()
:
void
Returns
void
print
Values
printValues
(
obj
:
any
)
:
string
Parameters
obj
:
any
Returns
string
resolve
resolve
(
name
:
string
)
:
any
Parameters
name
:
string
Returns
any
snake_
case
snake_case
(
str
:
string
)
:
string
Parameters
str
:
string
Returns
string
string
To
Boolean
stringToBoolean
(
str
:
string
)
:
boolean
Parameters
str
:
string
Returns
boolean
text
Splitter
textSplitter
(
text
:
string
,
chunkSize
?:
number
,
chunkOverlap
?:
number
,
)
:
Promise
<
string
[]
>
Parameters
text
:
string
chunkSize
:
number
= 3900
chunkOverlap
:
number
= 0
Returns
Promise
<
string
[]
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
_
map
Doc
Template
_
map
Query
Template
_
reduce
Chain
Template
chat_
model
container
llm
prompt
runnable
string
Expression
Accessors
description
map
Doc
Template
map
Query
Template
name
reduce
Chain
Template
template
Methods
_
print
Values
camelize
camel
To
String
chain
check
Assertion
check
Mention
check
Negation
extract
Objects
By
Key
find
Dates
And
Convert
To
Time
Elapsed
initialize
print
Values
resolve
snake_
case
string
To
Boolean
text
Splitter
medpromptjs
Loading...