langchain/docs/docs/guides
Bagatur 00a09e1b71
docs: use PromptTemplate.from_template (#17218)
Ran
```python
import glob
import re

def update_prompt(x):
    return re.sub(
        r"(?P<start>\b)PromptTemplate\(template=(?P<template>.*), input_variables=(?:.*)\)",
        "\g<start>PromptTemplate.from_template(\g<template>)",
        x
    )


for fn in glob.glob("docs/**/*", recursive=True):
    try:
        content = open(fn).readlines()
    except:
        continue
    content = [update_prompt(l) for l in content]
    with open(fn, "w") as f:
        f.write("".join(content))
```
2024-02-07 19:52:42 -08:00
..
deployments Docs: Fixed grammatical mistake (#16858) 2024-02-01 11:28:15 -08:00
evaluation docs: integration package pip installs (#15762) 2024-01-09 11:13:10 -08:00
privacy docs: integration package pip installs (#15762) 2024-01-09 11:13:10 -08:00
safety docs: use PromptTemplate.from_template (#17218) 2024-02-07 19:52:42 -08:00
debugging.md Batch update of alt text and title attributes for images in md/mdx files across repo (#15357) 2024-01-12 14:37:48 -08:00
fallbacks.ipynb docs: integration package pip installs (#15762) 2024-01-09 11:13:10 -08:00
local_llms.ipynb docs: fix links (#15848) 2024-01-10 17:39:06 -05:00
model_laboratory.ipynb docs: Update cohere rerank and comparison docs (#16198) 2024-01-23 19:39:42 -08:00
pydantic_compatibility.md docs[patch], templates[patch]: Import from core (#14575) 2023-12-11 16:49:10 -08:00