----------------------
I'm sorry, but the information provided in the knowledge sources does not include any references to a TypeScript (
.ts
) version of LlamaIndex or the CitationQueryEngine. The examples and API references provided are all in Python.
Here is how you can create a CitationQueryEngine with default arguments in Python:
query_engine = CitationQueryEngine.from_args(
index,
similarity_top_k=3,
# here we can control how granular citation sources are, the default is 512
citation_chunk_size=512,
)
You can find more details about the CitationQueryEngine in the
LlamaIndex documentation ().
If you're looking for a TypeScript version, I would recommend checking the official LlamaIndex documentation or reaching out to the LlamaIndex team for more information.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------