Custom Model Server Note (#668)

This commit is contained in:
Yuhong Sun
2023-10-31 19:05:38 -07:00
committed by GitHub
parent fbf7c642a3
commit 53353f9b62

View File

@@ -15,7 +15,11 @@ class CustomModelServer(LLM):
"""This class is to provide an example for how to use Danswer
with any LLM, even servers with custom API definitions.
To use with your own model server, simply implement the functions
below to fit your model server expectation"""
below to fit your model server expectation
The implementation below works against the custom FastAPI server from the blog:
https://medium.com/@yuhongsun96/how-to-augment-llms-with-private-data-29349bd8ae9f
"""
def __init__(
self,