Find answers from the community

Updated 3 months ago

Can you create the citation Query engine in LlamaIndex.ts?

Can you create the citation Query engine in LlamaIndex.ts?
k
2 comments
Please stand by @Callam as I search the knowledge base. I normally take about 20 seconds or so. :wave:
----------------------
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:

Plain Text
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:
----------------------
Add a reply
Sign up and join the conversation on Discord