num_output
tokens is needed, because we ensure that every message sent to the LLM leaves room for num_output
tokensnum_output
is used to limit our prompt to maximum 3,584 (4096-512) tokens, right? So in order to increase the room for output tokens I need to increase both num_output
prompt_helper and max_tokens
in LLM object, right?INFO:gpt_index.token_counter.token_counter:> [query] Total LLM token usage: 3620 tokens
chunk_size_limit=512
in the ServiceContext object. The default it quite largeNone
in the code in from_defaults
function, that I'm using:chunk_size_limit: Optional[int] = None
text_splitter = RecursiveCharacterTextSplitter(chunk_size=500, chunk_overlap=20) prompt_helper = PromptHelper(max_input_size=512, num_output=2048, max_chunk_overlap=20, chunk_size_limit=512) llm = ChatOpenAI(temperature=0, openai_api_key=OPENAI_API_KEY, max_tokens=2048) llm_predictor = LLMPredictor(llm=llm) service_context = ServiceContext.from_defaults(llm_predictor=llm_predictor, prompt_helper=prompt_helper, chunk_size_limit=512)
какой порядок приема в «Международный университет туризма и гостеприимства»
Порядок приема пакета документов поступающего в «Международный университет туризма и гостеприимства» определяется Приемной комиссией. Поступающий должен представить в Приемную комиссию оригиналы документов. Далее поступающему предос
INFO:gpt_index.token_counter.token_counter:> [query] Total LLM token usage: 2832 tokens
similarity_top_k
nodes (default is 1)GPTSimpleVectorIndex
,GPTSimpleVectorIndex
ComposableGraph.from_indices
<--- GPTListIndex
1. Total installed capacity of the Group 2. Total assets and profits of the Group 3. Gearing ratio of the Group 4. Details of the Company's subsidiaries and associates 5. Details of the Company's joint ventures 6. Discussion and analysis of the Group's business review, performance, key factors of its results and financial performance 7. Risk factors and risk management of the Group 8. Prospect for future development of the Group 9. Critical accounting estimates used in the preparation of the financial statements 10. Areas involving a higher degree of judgement or complexity in the application of accounting policies 11. Assumptions and estimates that are significant to the consolidated financial statements 12. Details of the changes in property, plant and equipment of the Group 13. Details of the changes in share capital of the Company during the Year 14. Provisions for pre-emptive rights under the Articles of Association or the PRC laws 15. Annual electricity generation of the Group 16. Savings of standard coal and reduction in carbon dioxide emissions of the Group 17. Clean Development Mechanism of the Group 18. Environmental policies of the Group and compliance with relevant laws and regulations 19. Relationships with key stakeholders of the Group
import logging import sys logging.basicConfig(stream=sys.stdout, level=logging.DEBUG) logging.getLogger().addHandler(logging.StreamHandler(stream=sys.stdout))
Entering new AgentExecutor chain... Thought: Do I need to use a tool? Yes Action: Vector Index 29.06.2022 Правила Приема МУТиГ-2022 рус СОНГЫ.pdf Action Input: порядок приема> [query] Total LLM token usage: 2832 tokens > [query] Total embedding token usage: 15 tokens Observation: Порядок приема пакета документов поступающего в «Международный университет туризма и гостеприимства» определяется Приемной комиссией. Поступающий должен представить в Приемную комиссию оригиналы документов. После приема документов Пред
"\nПоложение о порядке предоставления койко-мест в общежитии обучающимся \nв НАО «Международный университет туризма и гостеприимства». Издание 2 \n \n \nСтраница 60 из 71 \n7.АДРЕСА И РЕКВИЗИТЫ СТОРОН \nНекомерческое акционерное общество \n«Международный университет туризма и \nгостеприимства» \nАдрес: город Туркестан, улица Рабига \nСултанбегим, №14 А \n \nБСН 190440033845, КБЕ 18, КНП 872 \nР/С KZ 2960 1000 1000 026 251 \nАО «НАРОДНЫЙ БАНК» \n \nПредседатель Правления - Ректор \n__________ Сакенов А.М. \n«___»__________2022 год. \nПроживающий: \n \n__________________________________ \nУдостоверение личности \n№_________________ \nвыдано ____ от «__» _______ 20__ года \nИИН: _____________________________ \nАдрес проживания: _________________ \n______________________________________ \nс Положением о предоставлении мест \nпроживания в Общежитии и Правилами \nвнутреннего распорядка Общежития \nознакомлен \n________________________________________\n____________________________ \nподпись Ф.И.О. \n«___»__________2022 год. \n \n \n \n \n"