Relative Content

Tag Archive for langchainlarge-language-model

Is ther any way to debug the Tracing project on Langsmith?

I am newbie to langsmith platform . Just wrote a simple code with different api keys set up in the environment. But Iam not able to track the same when I log in into my account . I have generated and tried 3 different API keys for langsmith and open AI for the eventhough Iam able to generate output at local.Please suggest.
Below is the code

Langchain unpredicted behavior create_sql_query_chain

I am new to Langchain and I try to currently wrap my head around a tutorial to build a LLM Agent to interact with a SQL data base (https://python.langchain.com/v0.2/docs/tutorials/sql_qa/).
I am running into issues early on. When I run the code, the create_sql_query_chain always produces a different output than expected. In the provided link, the following code snippet is supposed to result a variable ‘response’ containing a pure SQL query which is runnable using for example db.run(response)

Are there any libraries that can ease the process to both intelligently chunk documents and prepare unsupervised question / answer pairs for LoRA?

I am creating Python code to help fine-tune a Llama-3.1-8b-Instruct model locally. I have written code to import documents, to chunk them, and then to prompt the local model to generate the questions and answer pairs. Is anyone familiar with packages that can do all of these steps? I see that Langchain will perform the chunking and create a token dataset, but it doesn’t appear to perform unsupervised prompts. A package would be useful since there are a lot of values to tune in a slow performing environment (e.g. chunk size, chunk overlap, system propmt, etc.).

Is there a Langchain embedding model that can recognize url inside pdf file?

“I have a PDF file as my Langchain external database, which contains text content and corresponding URLs. For example,the text looks like this:
‘To solve the problem,
step 1 You can first click the buttom on the right corner,
step 2 then open the link: https://xxxxxx, to fill the form,
step 3 then send the form to us