QEUR23_CHRLTM41 : (少量実験)セクシーなCONTEXT抽出のための新しい戦略
~ LLMはUnsloth製なので、いいこともあり、わるいこともあり・・・ ~
D先生(設定年齢65歳): “前回は予備実験です。・・・とすると、今回は「少量実験」ですね。解析フローでいうと、現在の我々はStep1のアウトプットであるFBQ(FACT_BASED_QUESTION)を使って、Step2の初期回答を行うところです。”
QEU:FOUNDER(設定年齢65歳) : “すでに前回において、8割がたのシステム構築は完了しているわけです。あとは、UnslothのLLM(Mistral Nemo-12b)でどのような回答が得られるのかを見てみようとおもいます。”
QEU:FOUNDER(設定年齢65歳) : “EXCELのFBQ(FACT_BASED_QUESTION)を使います。まずは、単純な推論をやってみましょう。すでに紹介したので、ここまでのコードは省略します。それでは推論の結果だけをドン!!”
--- str_instruction, NO,1 ---
The forecast highlights the necessity for Japan to adapt to the emerging global economic order by rethinking its alliances and currency usage in international trade, potentially joining the BRICS or-ganisation and de-emphasising its G7 affiliations. What are the potential risks and benefits for Japan in re-evaluating its alliances and currency usage in international trade, particularly in relation to its relationships with the US and China?
この予測は、日本が国際貿易における同盟関係や通貨の使用を再考し、BRICS 組織に加盟し、G7 への加盟を控えることで、新たな世界経済秩序に適応する必要性を強調しています。特に米国や中国との関係において、国際貿易における同盟関係や通貨の使用を再評価することで、日本にとって潜在的なリスクとメリットは何でしょうか。
--- response, NO,1 ---
The potential risks and benefits for Japan in re-evaluating its alliances and currency usage in inter-national trade are complex and multifaceted. On the one hand, joining the BRICS organisation and de-emphasising its G7 affiliations could provide Japan with greater economic and political influence in the emerging global economic order. This could potentially lead to increased trade and investment opportunities, as well as greater access to resources and markets. Additionally, it could help Japan to diversify its economic and political relationships, reducing its dependence on the US and China and making it less vulnerable to economic and political shocks.
On the other hand, there are potential risks associated with re-evaluating Japan's alliances and cur-rency usage in international trade. For example, it could lead to increased tensions with the US and China, which could have negative consequences for Japan's economic and political stability. Addi-tionally, it could lead to a loss of influence and prestige within the G7, which could have negative consequences for Japan's economic and political standing in the global community.
Overall, the potential risks and benefits of re-evaluating Japan's alliances and currency usage in in-ternational trade are complex and multifaceted. It is important for Japan to carefully consider the potential risks and benefits before making any decisions.
日本が国際貿易における同盟関係や通貨の使用を再評価することによる潜在的なリスクとメリットは複雑で多面的です。一方では、BRICS 組織に加盟し、G7 との提携関係を軽視することで、日本は新たな世界経済秩序においてより大きな経済的、政治的影響力を持つ可能性があります。これにより、貿易や投資の機会が増え、資源や市場へのアクセスが拡大する可能性があります。さらに、日本は経済的、政治的な関係を多様化し、米国や中国への依存を減らし、経済的、政治的なショックに対する脆弱性を軽減することができます。
他方では、日本の国際貿易における同盟関係や通貨の使用を再評価することには潜在的なリスクがあります。たとえば、米国や中国との緊張が高まる可能性があり、日本の経済的、政治的安定に悪影響を与える可能性があります。さらに、G7 内での影響力と威信が失われ、国際社会における日本の経済的、政治的地位に悪影響を与える可能性があります。
全体として、日本の同盟関係や国際貿易における通貨の使用を再評価することによる潜在的なリスクと利益は複雑かつ多面的である。日本としては、決定を下す前に潜在的なリスクと利益を慎重に検討することが重要である。
D先生(設定年齢65歳): “一見出来は良い。わかっていたとはいえ、回答は、全然、「セクシー(SEXY)」ではないですね。それでは、RAGの情報を入れてみましょう。”
################################
# LANGCHAINの初期化
################################
# ---
from langchain.text_splitter import RecursiveCharacterTextSplitter
from langchain_community.document_loaders import TextLoader, DirectoryLoader
from langchain.embeddings import HuggingFaceEmbeddings
from langchain.vectorstores import Chroma
from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
from langchain import HuggingFacePipeline
from langchain.chains.question_answering import load_qa_chain
from langchain.prompts import PromptTemplate
# ---
pipe = pipeline("text-generation", model=model, tokenizer=tokenizer, max_new_tokens=512)
llm = HuggingFacePipeline(pipeline=pipe)
###########################################
# ベクトルストアを生成する
###########################################
# ---
# paths
TXTs_path = 'drive/MyDrive/input_txts'
Embeddings_path = 'drive/MyDrive/input_txts/vectordb'
# ---
# [TXT]Load data
text_loader_kwargs = {'autodetect_encoding': True}
loader = DirectoryLoader(
TXTs_path,
glob = "./*.txt",
loader_cls = TextLoader,
show_progress = True,
use_multithreading = True,
loader_kwargs=text_loader_kwargs
)
documents = loader.load()
# ---
print(f'We have {len(documents)} pages in total')
# Split data into chunks
text_splitter = RecursiveCharacterTextSplitter(
chunk_size = 1000,
chunk_overlap = 60,
length_function = len,
add_start_index = True,
)
chunks = text_splitter.split_documents(documents)
###################################
# RAG-EMBEDDINGシステムを初期化する
###################################
# This snippet shows and example how to use the Cohere Embed V3 models for semantic search.
# Make sure to have the Cohere SDK in at least v4.30 install: pip install -U cohere
# Get your API key from: www.cohere.com
import cohere
co = cohere.Client()
# ----
from langchain.embeddings import HuggingFaceBgeEmbeddings
embeddings = HuggingFaceBgeEmbeddings(
model_name="BAAI/bge-base-en",
model_kwargs={'device': 'cuda'},
encode_kwargs={'normalize_embeddings': True}
)
# ---
# Store data into database
#db=Chroma.from_documents(chunks,embedding=embeddings,persist_directory=Embeddings_path)
#db.persist() automatic save
# ---
# Load the database
vectordb = Chroma(persist_directory=Embeddings_path, embedding_function = embeddings)
# ---
# Load the retriver : k = 10 pcs
retriever = vectordb.as_retriever(search_kwargs = {"k" : 10})
####################################
# ユーティリティ関数群
####################################
# -----
# Helper function for printing docs
def pretty_print_docs(docs):
print(
f"\n{'-' * 100}\n".join(
[f"Document {i+1}:\n\n" + d.page_content for i, d in enumerate(docs)]
)
)
# -----
# compare two vectors
def calculate_similarity(a, b):
return np.dot(a, b) / (np.linalg.norm(a) * np.linalg.norm(b))
# -----
# セクシースコアを計算する関数
def calc_sexyscore(mx_similarity):
num_docs = len(mx_similarity)
arr_score = []
for i in range(num_docs):
arr_similarity = mx_similarity[i,:]
val_score = np.dot(arr_similarity, arr_similarity)
val_score = math.sqrt(val_score)
arr_score.append(val_score)
return np.array(arr_score)
###################################
# DOC vs POV のEMBEDDINGを生成して、セクシースコアでCHUNKを並べ替える
###################################
# ---
def create_sexyscore(docs, arr_POV):
# ----
docs_txt = []
for i in range(len(docs)):
#print(docs[i].page_content)
docs_txt.append(docs[i].page_content)
# ----
#Encode your documents with input type 'search_document'
doc_emb = co.embed(texts=docs_txt, input_type="search_document", model="embed-english-v3.0").embeddings
doc_emb = np.asarray(doc_emb)
#print(doc_emb.shape)
# ----
#Encode your query with input type 'search_query'
pov_query = arr_POV.tolist()
#print(pov_query)
# ----
pov_emb = co.embed(texts=pov_query, input_type="search_query", model="embed-english-v3.0").embeddings
pov_emb = np.asarray(pov_emb)
#print(pov_emb.shape)
###################################
# 類似度マトリックスを生成する
###################################
# -----
# 類似度を評価し、マトリックスを生成する
num_doc, num_pov = len(doc_emb), len(pov_emb)
mx_similarity = np.zeros([num_doc, num_pov])
for i in range(num_doc):
for j in range(num_pov):
mx_similarity[i,j] = calculate_similarity(doc_emb[i,:], pov_emb[j,:]) # 0.85 - very simi-lar!
###################################
# POV類似度(セクシースコア)でスコアを生成し、並べ替える
###################################
# ----
# create score array
sexyscores = calc_sexyscore(mx_similarity)
#print(sexyscores)
# ----
# Find the highest scores
max_idx = np.argsort(-sexyscores)
# --
doc_ordered, score_ordered = [], []
#print(f"Query: {query}")
for idx in max_idx:
#print(f"SexyScore: {sexyscores[idx]:.2f}")
#print(docs_txt[idx])
#print("--------")
doc_ordered.append(docs_txt[idx])
score_ordered.append(sexyscores[idx])
return doc_ordered, score_ordered
####################################
# よりSEXYなRAGを抽出する関数を設定する
####################################
# ---
def create_sexyRAG(query, arr_POV):
# ---
# クエリーに対応したCHUNKを呼び出し
docs = retriever.invoke(query)
#print("--- query ---")
#print(query)
#print("\n\n")
#print("--- answer ---")
#pretty_print_docs(docs)
# ---
# セクシースコアに対応したCHUNKを出力する
doc_ordered, score_ordered = create_sexyscore(docs, arr_POV)
return doc_ordered, score_ordered
# ----------------
# テスト出力 - 簡単な質問に対してCHUNKを抽出する
i = 1 # FBQの番号
query = arr_FBQ[i]
doc_ordered, score_ordered = create_sexyRAG(query, arr_POV)
# ---
# クエリを表示する
print(f"--- query, NO:{i} ---")
print(query)
print("\n\n")
# ---
# CHUNKを表示する
for i in range(len(doc_ordered)):
print(f"--- doc NO:{i}, sexyscore:{score_ordered[i]} ---")
print(doc_ordered[i])
print("\n\n")
QEU:FOUNDER : “ここまで、抽出した内容をみてみましょう。例えば、クエリNO1では・・・。”
(Query NO:1)
The forecast highlights the necessity for Japan to adapt to the emerging global economic order by rethinking its alliances and currency usage in international trade, potentially joining the BRICS or-ganisation and de-emphasising its G7 affiliations. What are the potential risks and benefits for Japan in re-evaluating its alliances and currency usage in international trade, particularly in relation to its relationships with the US and China?
この予測は、日本が国際貿易における同盟関係や通貨の使用を再考し、BRICS 組織に加盟し、G7 への加盟を控えることで、新たな世界経済秩序に適応する必要性を強調しています。特に米国や中国との関係において、国際貿易における同盟関係や通貨の使用を再評価することで、日本にとって潜在的なリスクとメリットは何でしょうか。
(抽出されたCHUNK-DOC)
--- doc NO:0, sexyscore:1.3659076544520734 ---
BRICS, as a grouping of emerging economies, holds both promise and challenges for its member na-tions and the global community. The pros, including economic strength, diversification of trade, and enhanced political influence, highlight the potential benefits of this collaboration. However, the cons, such as diverse interests, limited institutionalization, inequality among members, and geopolitical tensions, underscore the complexities that BRICS must navigate to achieve its objectives. As BRICS continues to evolve and adapt, it will be crucial for its member nations to address these challenges in order to maximize the positive impact of this important geopolitical alliance.
新興経済国グループとしてのBRICSは、加盟国と国際社会にとって、将来性と課題の両方を秘めています。経済力、貿易の多様化、政治的影響力の強化などの利点は、この連携の潜在的なメリットを際立たせています。しかし、多様な利益、制度化の限界、加盟国間の不平等、地政学的緊張などの欠点は、BRICSが目的を達成する上で乗り越えなければならない複雑さを浮き彫りにしています。BRICSが進化と適応を続ける中、この重要な地政学的同盟のプラスの影響を最大化するために、加盟国がこれらの課題に取り組むことは極めて重要です。
--- doc NO:1, sexyscore:1.3419542074021202 ---
BRICS+ creates a forum that, at minimum, gives emerging markets the opportunity to align on glob-al topics and new opportunities to promote mutual economic development and growth. And it's evolving steadily. As it begins building political and financial institutions and a payment mechanism for executing transactions, there are important potential implications for the future of energy trade, international finance, global supply chains, monetary policy, and technological research. As a result, global companies will need to factor these new geopolitical and economic realities into their invest-ment strategies. They should also strengthen their capacity to capture the opportunities and to miti-gate risk that they engender.
BRICS+ は、新興市場にグローバルな問題で足並みを揃え、相互の経済発展と成長を促進する新たな機会を与えるフォーラムを少なくとも創出します。そして、それは着実に進化しています。政治および金融機関、取引を実行するための支払いメカニズムの構築が始まると、エネルギー貿易、国際金融、グローバル サプライ チェーン、金融政策、技術研究の将来に重要な影響が及ぶ可能性があります。その結果、グローバル企業は、これらの新しい地政学的および経済的現実を投資戦略に組み込む必要があります。また、機会を捉え、それらがもたらすリスクを軽減する能力を強化する必要があります。
--- doc NO:2, sexyscore:1.3288867427954048 ---
However, a review of the current international status of the yen revealsthat internationalization has not necessarily kept pace with what is warranted by thescale of the Japanese economy. In fact, recent developments indicate that theinternational standing of the yen may actually be receding in some re-spects. On the otherhand, recent economic and financial environments affecting Japan point to the need for thegreater internationalization of the yen. On the international front, one of the causalfac-tors of the Asian currency crises is said to be the over-dependence on the U.S. dollar,while the emer-gence of the euro -- which may have a major impact on the presentdollar-based international mone-tary system -- calls for a reconsideration of the role ofthe yen. On the domestic front, radical measures for the liberalization of the financialand capital markets are being taken under Japan's "Big Bang" with the aim topromote Tokyo as an international financial market on par with New York and
しかし、円の現在の国際的地位を振り返ると、必ずしも日本経済の規模に見合った国際化が進んでいない。むしろ、最近の動向から、円の国際的地位はむしろ後退しつつある面もある。他方、最近の日本を取り巻く経済・金融環境は、円のさらなる国際化の必要性を示唆している。国際的には、アジア通貨危機の原因の一つは米ドルへの過度の依存にあると言われており、また、現在のドルを基盤とする国際通貨制度に大きな影響を及ぼす可能性のあるユーロの出現は、円の役割を再考させるものとなっている。国内的には、日本版ビッグバンの下で、金融資本市場の自由化に向けた抜本的な措置が講じられ、東京をニューヨークやロンドンと同等の国際金融市場に押し上げることを目指している。
D先生: “これらは、前回定義したSEXYSCOREでソートされた結果ですね。このDOC情報をCONTEXTにいれて推論しましょう。プログラムは以下のとおりです。”
##################################
# セクシースコアを活用したRAG推論
##################################
# ---
# Inference
from IPython.display import Markdown, display
# ---
# alpaca_prompt_with_context
alpaca_prompt_w_context = """<s>You are an excellent AI assistant. Below is an instruction that describes a task, paired with an input that provides further information. The instruction and input are question provided by your user. Write a response appropriately your user's question. Because very useful texts have been provided in context field (texts after 'Context:'), you should write answer by using context information as much as possible. Your answer should be divided into two parts: the first part is a summary of the context, and the second part is your brief opinion based on the context. Your answer should be at least 800 words but no more than 1000 words.
### Instruction:
{}
### Input:
{}
### Context:
{}
### Response:
"""
# ----
def create_context(str_instruction, str_input):
# ---
# 暫定プロンプトを生成する
if len(str_input) < 5:
temp_prompt = f"""
### Instruction: {str_instruction}
"""
else:
temp_prompt = f"""
### Instruction: {str_instruction}
### Input: {str_input}
"""
# ---
# 量産出力 - 簡単な質問に対してCHUNKを抽出する
query = temp_prompt
doc_ordered, score_ordered = create_sexyRAG(query, arr_POV)
# ---
# クエリを表示する
print("--- query ---")
print(query)
print("\n")
# ---
# CHUNKを表示する
str_context = ""
for i in range(5):
print(f"--- doc NO:{i}, sexyscore:{score_ordered[i]} ---")
print(doc_ordered[i])
print("\n")
str_context = str_context + doc_ordered[i] + "\n"
return str_context
# ----
def response_correction(str_instruction, str_input):
# ---
str_context = create_context(str_instruction, str_input)
# ---
inputs = tokenizer(
[
alpaca_prompt_w_context.format(
str_instruction, # instruction
str_input, # input
str_context, # context
)
], return_tensors = "pt").to("cuda")
# ---
outputs = model.generate(**inputs, max_new_tokens = 1024, use_cache = True, pad_token_id = tokenizer.eos_token_id)
list_output = tokenizer.batch_decode(outputs)
# ---
str_output = list_output[0]
str_output = str_output.replace("<s>","")
str_output = str_output.replace("</s>","")
return str_output
# ----
# 入出力snippet
i = 1
str_instruction = arr_FBQ[i]
str_input = ""
response_correct = response_correction(str_instruction, str_input)
display(Markdown(f"<b>{response_correct}</b>"))
QEU:FOUNDER : “おなじくNO1の質問(クエリ)に回答します。クエリと回答のみをみてみましょう。”
(クエリ)
The forecast highlights the necessity for Japan to adapt to the emerging global economic order by rethinking its alliances and currency usage in international trade, potentially joining the BRICS or-ganisation and de-emphasising its G7 affiliations. What are the potential risks and benefits for Japan in re-evaluating its alliances and currency usage in international trade, particularly in relation to its relationships with the US and China?
この予測は、日本が国際貿易における同盟関係や通貨の使用を再考し、BRICS 組織に加盟し、G7 への加盟を控えることで、新たな世界経済秩序に適応する必要性を強調しています。特に米国および中国との関係において、国際貿易における同盟関係や通貨の使用を再評価することで、日本にとって潜在的なリスクとメリットは何でしょうか。
(回答)
The potential risks and benefits for Japan in re-evaluating its alliances and currency usage in inter-national trade, particularly in relation to its relationships with the US and China, are complex and multifaceted. On the one hand, joining the BRICS organization and de-emphasizing its G7 affilia-tions could provide Japan with greater economic and political influence in the global arena. It could also help to diversify Japan's economic and political relationships, reducing its dependence on the US and China. On the other hand, such a move could also lead to increased tensions with the US and China, potentially leading to economic and political sanctions or other forms of retaliation. Addi-tionally, it could also lead to a loss of influence in the G7, which could have negative implications for Japan's economic and political interests. Ultimately, the decision to re-evaluate Japan's alliances and currency usage in international trade should be made carefully, taking into account the potential risks and benefits of such a move.
日本が国際貿易における同盟関係や通貨使用を再評価すること、特に米国や中国との関係を見直すことによる潜在的なリスクとメリットは、複雑かつ多面的である。一方では、BRICS に加盟し、G7 への加盟を控えることで、日本は国際舞台でより大きな経済的、政治的影響力を獲得できる可能性がある。また、日本の経済的、政治的関係を多様化し、米国や中国への依存を減らすことにもつながる可能性がある。他方では、こうした動きは米国や中国との緊張の高まりにつながり、経済的、政治的制裁やその他の形の報復につながる可能性もある。さらに、G7 における影響力の喪失につながる可能性もあり、日本の経済的、政治的利益にマイナスの影響を与える可能性がある。結局のところ、日本の国際貿易における同盟関係や通貨使用を再評価するという決定は、こうした動きの潜在的なリスクとメリットを考慮した上で、慎重に行うべきである。
D先生: “あれ!?ちょっと回答がつまらなくないですか?そもそも、この出力は「プロンプトの指示(↓)」に従っていません。”
(プロンプト)
You are an excellent AI assistant. Below is an instruction that describes a task, paired with an input that provides further information. The instruction and input are question provided by your user. Write a response appropriately your user's question. Because very useful texts have been provided in context field (texts after 'Context:'), you should write answer by using context information as much as possible. Your answer should be divided into two parts: the first part is a summary of the context, and the second part is your brief opinion based on the context. Your answer should be at least 800 words but no more than 1000 words.
あなたは優秀な AI アシスタントです。以下はタスクを説明する指示と、さらに詳しい情報を提供する入力を組み合わせたものです。指示と入力は、ユーザーから提供された質問です。ユーザーの質問に適切に応答してください。コンテキスト フィールド (「コンテキスト:」の後のテキスト) に非常に役立つテキストが提供されているため、できるだけコンテキスト情報を使用して回答を記述する必要があります。回答は 2 つの部分に分ける必要があります。最初の部分はコンテキストの要約で、2 番目の部分はコンテキストに基づいた簡単な意見です。回答は 800 語以上 1000 語以下にしてください。
D先生: “設定したプロンプトによると、LLMが出力する回答の内容は前半(まとめ)と後半(意見)に分かれる必要があります。”
QEU:FOUNDER : “そうなんだよねえ・・・。そこで、小生は、それから質問NOを少しづつ変えて、連続して回答させてみました。すると、徐々に以下のように変化していき、13回目の回答は、以下のようになります。”
Instruction:
India's geopolitical stance is a good example of the emerging trend of countries seeking to diversify their trade relationships and maintain strategic autonomy. What are the key factors driving India's foreign policy approach, and how is it balancing its relationships with the G7, BRICS, and other global governance institutions?
インドの地政学的立場は、各国が貿易関係の多様化と戦略的自立の維持を目指す新たな傾向を示す好例です。インドの外交政策のアプローチを推進する主な要因は何ですか。また、インドは G7、BRICS、その他のグローバルガバナンス機関との関係をどのようにバランスさせているのでしょうか。
Response:
Summary:
India's geopolitical stance is a good example of the emerging trend of countries seeking to diversify their trade relationships and maintain strategic autonomy. The key factors driving India's foreign policy approach include its historical commitment to non-alignment movement, preference for stra-tegic independence, and the rise of emerging economies. India's approach to multilateral forums and alliances is measured and balanced, with a preference for maintaining strategic independence. The exclusion of significant economies from influential international bodies weakens the legitimacy of the G7 as a global forum. In the realm of global economic and geopolitical dynamics, multilateral coop-eration is increasingly playing an important role in shaping the future trajectory of world politics. The BRICS and G7 represent two different groups that hold conflicting views on the existing eco-nomic order and how it benefits certain nations. The intricate dynamics between these two groups encapsulate a complex interplay of cooperation, competition, and ideological divergence within the realm of global governance. The policy of "multi-alignment" gives India the opportunity to take on different foreign policy roles and thus pursue different strategies. Within the BRICS group, this is expressed in India's claim to represent a counterweight to Russia and China and consequently to bal-ance this power bloc politically and economically in order to contain its influence. This balancing act is reflected within BRICS in the confrontation with China, particularly in the "global South". Here, India and China are competing for the favour of various developing countries, whereby India's claim to be the leading power of the "global South" has not yet been fulfilled.
インドの地政学的立場は、貿易関係の多様化と戦略的自立の維持を目指す国々の新たな傾向を示す好例である。インドの外交政策アプローチを推進する主な要因には、非同盟運動への歴史的関与、戦略的独立の優先、新興経済国の台頭などがある。インドの多国間フォーラムや同盟へのアプローチは慎重かつバランスが取れており、戦略的独立の維持を優先している。影響力のある国際機関から主要経済国が排除されていることは、グローバルフォーラムとしての G7 の正当性を弱める。世界経済と地政学的ダイナミクスの領域では、多国間協力が世界政治の将来の軌道を形成する上でますます重要な役割を果たしている。BRICS と G7 は、既存の経済秩序とそれが特定の国にどのような利益をもたらすかについて相反する見解を持つ 2 つの異なるグループを表している。これら 2 つのグループ間の複雑なダイナミクスは、グローバル ガバナンスの領域における協力、競争、イデオロギーの相違の複雑な相互作用を要約している。 「多角的連携」政策は、インドにさまざまな外交政策の役割を担い、さまざまな戦略を追求する機会を与える。BRICS グループ内では、インドはロシアと中国に対するカウンターウェイトとなり、その結果、この勢力圏の政治的、経済的バランスを取り、その影響力を抑えるという主張に表れている。このバランスを取る行為は、特に「グローバル サウス」における中国との対立に BRICS 内で反映されている。ここでは、インドと中国はさまざまな発展途上国の支持を得るために競争しており、インドの「グローバル サウス」の主導的勢力であるという主張はまだ果たされていない。
Opinion:
India's geopolitical stance is a good example of the emerging trend of countries seeking to diversify their trade relationships and maintain strategic autonomy. The key factors driving India's foreign policy approach include its historical commitment to non-alignment movement, preference for stra-tegic independence, and the rise of emerging economies. India's approach to multilateral forums and alliances is measured and balanced, with a preference for maintaining strategic independence. The exclusion of significant economies from influential international bodies weakens the legitimacy of the G7 as a global forum. In the realm of global economic and geopolitical dynamics, multilateral coop-eration is increasingly playing an important role in shaping the future trajectory of world politics. The BRICS and G7 represent two different groups that hold conflicting views on the existing eco-nomic order and how it benefits certain nations. The intricate dynamics between these two groups encapsulate a complex interplay of cooperation, competition, and ideological divergence within the realm of global governance. The policy of "multi-alignment" gives India the opportunity to take on different foreign policy roles and thus pursue different strategies. Within the BRICS group, this is expressed in India's claim to represent a counterweight to Russia and China and consequently to bal-ance this power bloc politically and economically in order to contain its influence. This balancing act is reflected within BRICS in the confrontation with China, particularly in the "global South". Here, India and China are competing for the favour of various developing countries, whereby India's claim to be the leading power of the "global South" has not yet been fulfilled.
インドの地政学的立場は、貿易関係の多様化と戦略的自立の維持を目指す国々の新たな傾向を示す好例である。インドの外交政策アプローチを推進する主な要因には、非同盟運動への歴史的関与、戦略的独立の優先、新興経済国の台頭などがある。インドの多国間フォーラムや同盟へのアプローチは慎重かつバランスが取れており、戦略的独立の維持を優先している。影響力のある国際機関から主要経済国が排除されていることは、グローバルフォーラムとしての G7 の正当性を弱める。世界経済と地政学的ダイナミクスの領域では、多国間協力が世界政治の将来の軌道を形成する上でますます重要な役割を果たしている。BRICS と G7 は、既存の経済秩序とそれが特定の国にどのような利益をもたらすかについて相反する見解を持つ 2 つの異なるグループを表している。これら 2 つのグループ間の複雑なダイナミクスは、グローバル ガバナンスの領域における協力、競争、イデオロギーの相違の複雑な相互作用を要約している。 「多角的連携」政策は、インドにさまざまな外交政策の役割を担い、さまざまな戦略を追求する機会を与える。BRICS グループ内では、インドはロシアと中国に対するカウンターウェイトとなり、その結果、この勢力圏の政治的、経済的バランスを取り、その影響力を抑えるという主張に表れている。このバランスを取る行為は、特に「グローバル サウス」における中国との対立に BRICS 内で反映されている。ここでは、インドと中国はさまざまな発展途上国の支持を得るために競争しており、インドの「グローバル サウス」の主導的勢力であるという主張はまだ果たされていない。
D先生: “なんじゃこれは?LLMの回答では、SUMMARY、OPINIONとはタイトルを打っているが、内容は繰り返しになっているじゃないですか?”
QEU:FOUNDER : “実験してみた小生の感覚では、本不具合は、Finetuningがかなり邪魔をしているようです。そして、質問を繰り返すうちに徐々にfinetuningの制限が解けてきています。”
D先生: “そして、その制限が解けてきたのはいいが、モデルの能力の限界がでてきている。・・・ということ?”
QEU:FOUNDER : “そこまでは言えないが、少なくともfinetuningのやり直しが必須だと思うね。Unslothは、LLMモデルを使うための資源を大いに削減してくれたが、うまく使うには、それなりのケアが必要だと思う。”
~ まとめ ~
D先生: “いやあ、歴史的な動画に出会ったような気がしませんか?”
QEU:FOUNDER : “彼自身が、推理していることがらが、その後の調査で明らかになっていきます。それにしても、「海外からの働きかけ」ってあるんだねえ・・・。我々の生活の中には、このようなインテリジェンス活動など見えないが、ホント、情報の出所に注意しなければならない時代になったのですね。”
D先生: “多量の情報がタダで手に入る代償です。・・・ですが、当の本人(↑)はこう言っています。これは、どうなっているの?”
QEU:FOUNDER : “その真偽というのは、その場所に住んでいないとわかりませんよ。我々は、あのオッサンの「推理芸」を堪能しているわけです。彼は、Google Trend(Analytics)のデータから推理をしたんです。”
D先生: “なるほど・・・、「例の場所」で人気(?)がありますね。例のジャーナリストのWikipedia(↓)によると、「〇〇人たち」が悪いように見えるが、その原因がどこにあるかと考えると、結局は、どちらがわるいのか?たった数件の出来事を、ジャーナリズムで「〇〇人全体がわるい」と言っていないか?”
QEU:FOUNDER : “ダウト!!wikipediaでは、「自称」となっているぞ!!”
QEU:FOUNDER : “なにはともあれ、今は情報過多の時代なので、いろいろな見方をしなければいけないことを勉強しました。ちなみに、我々は、別にオッサンの意見に賛成しているわけじゃないです。その場所で起きている「事実」が欲しいです。これは念のため・・・。”