Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
object"
- Page 1
Retrieval Augmented Generation with Hugging Face Models in LangChain
Programming
Computer Science
5 Days Ago
by usmanmalik57
…, using the transformers pipeline, create an
object
of the langChain `HuggingFacePipeline` class. ``` pipe = pipeline(&
quot
;text-generation&
quot
;, model=model, tokenizer=tokenizer, max_new_tokens…
Re: Using Natural Language to Query SQL Databases with Python LangChain Module
Programming
Computer Science
1 Day Ago
by aishamushtaq
very helpful
Re: How can I upload a tar.bz2 file to openstack swift object storage container
Programming
Software Development
4 Weeks Ago
by Hanginium65
… for the file transfer to &
quot
;application/octet-stream&
quot
;. The first was sent through to
object
storage but the tar file couldn…() else: logger.info(f&
quot
;Is something else: {tarinfo.name}. Skip it&
quot
;) continue # Create a file-like
object
from the contents... file_like_object…
Using Natural Language to Query SQL Databases with Python LangChain Module
Programming
Computer Science
2 Weeks Ago
by usmanmalik57
…a `get_db_response` function that accepts the database
object
and the user query as input parameters.…agent_executor = create_sql_agent(LLM, db=db, agent_type=&
quot
;openai-tools&
quot
;, verbose=True) response = agent_executor.invoke(query)…
How do I swap out the mesh on a humanoid armature in Unity 3D?
Programming
Game Development
1 Week Ago
by Michael_80
… that there are several meshes on the (prefab/game
object
) that I unpacked and wanted to know how to … Man_Body Mesh) and are they layered individually onto the game
object
? I have attempted to add a mesh filter (Man_BodyMesh)… Man-BodyMesh from the Starter Asset Mesh…….basically my
object
upon play looked like the vertices were jumbled resulting …
Create And Install Windows Service Step By Step In C#
Programming
Web Development
2 Weeks Ago
by Rabiya_1
….Timers.ElapsedEventHandler(WorkProcess); } public void WorkProcess(
object
sender, System.Timers.ElapsedEventArgs e) { string process = &
quot
;Timer Tick &
quot
; + count; LogService(process); count++; } protected…
Question Answering with YouTube Videos Using RAG in LangChain
Programming
Computer Science
1 Week Ago
by usmanmalik57
… of the process is straightforward. We create an
object
of the `ChatOpenAI` LLM and define a `retriever… ``` prompt = ChatPromptTemplate.from_messages([ MessagesPlaceholder(variable_name=&
quot
;chat_history&
quot
;), (&
quot
;user&
quot
;, &
quot
;{input}&
quot
;), (&
quot
;user&
quot
;, &
quot
;Given the above conversation, generate a search …
Re: How can I upload a tar.bz2 file to openstack swift object storage container
Programming
Software Development
4 Weeks Ago
by Salem
I don't understand why you need to extract all the files from the compressed `tar.bz2` just to upload to a backup. Also, line 69 is now meaningless having just posted only a snippet of the code. Before the error, what was the last `logger.info` message?
Re: Create And Install Windows Service Step By Step In C#
Programming
Web Development
2 Weeks Ago
by rproffitt
Since the answer would be many pages long, read https://learn.microsoft.com/en-us/dotnet/framework/windows-services/walkthrough-creating-a-windows-service-application-in-the-component-designer and consider the two other pages noted there.
Re: Which programming language is best Ludo game development?
Programming
Game Development
1 Week Ago
by kishanrg
…, are C++, C#, Java, JavaScript, and Python. Ultimately, the &
quot
;best&
quot
; programming language for Ludo game development depends on your specific…
Re: Which programming language is best Ludo game development?
Programming
Game Development
1 Week Ago
by polles
i would choose JavaScript
How can I upload a tar.bz2 file to openstack swift object storage container
Programming
Software Development
1 Month Ago
by Hanginium65
…
object
&
quot
; + obj1 + &
quot
; was successfully created&
quot
;) except ClientException as e: if e.http_status == '404': print(&
quot
;The
object
&
quot
; + obj1 + &
quot
; was not found!&
quot
;) else: print(&
quot
…
Add property to standard object
Programming
Web Development
1 Month Ago
by Dani
I, very hackily, create an
object
of type stdClass as so: $arr = array( 'foo' => 'bar', 'baz' => 'bat' ); $obj = json_decode(json_encode($arr)); How can I now quickly add a third property to $obj without PHP getting angry?
Paris Olympics Chatbot- Get Ticket Information Using Chat-GPT and LangChain
Programming
Computer Science
1 Month Ago
by usmanmalik57
… `invoke()` method using the model
object
and pass it your input query. ``` result = llm.invoke(&
quot
;You are a comedian, tell a…` attribute of the response
object
. ``` chain = prompt | llm result = chain.invoke( {&
quot
;assistant&
quot
;: &
quot
;You are a comedian&
quot
;, &
quot
;input&
quot
;: &
quot
;Tell a joke about…
Paris Olympics Ticket Information Chatbot with Memory Using LangChain
Programming
Computer Science
1 Month Ago
by usmanmalik57
…embeddings) ``` Subsequently, we create a `ChatPromptTemplate`
object
that accepts our input query and context information … = ChatPromptTemplate.from_messages([ MessagesPlaceholder(variable_name=&
quot
;chat_history&
quot
;), (&
quot
;user&
quot
;, &
quot
;{input}&
quot
;), (&
quot
;user&
quot
;, &
quot
;Given the above conversation, generate a…
how convert cur images to image?
Programming
Software Development
2 Months Ago
by cambalinho
…?(just for learning) Private Sub btnChooseImage_Click(ByVal sender As System.
Object
, ByVal e As System.EventArgs) Handles btnChooseImage.Click If (ofdChooseFile… Viewer: &
quot
; & ofdChooseFile.FileName End If End Sub how can i get the image from a cursor? the Cursor
object
read…
Fine Tuning Google Gemma Model for Text Classification in Python
Programming
Computer Science
2 Months Ago
by usmanmalik57
…( r = 8, target_modules = [&
quot
;q_proj&
quot
;, &
quot
;o_proj&
quot
;, &
quot
;k_proj&
quot
;, &
quot
;v_proj&
quot
;, &
quot
;gate_proj&
quot
;, &
quot
;up_proj&
quot
;, &
quot
;down_proj&
quot
;], task_type = &
quot
;CAUSAL_LM&
quot
;, ) ``` Finally, you can create an
object
of the `SFTTrainer…
Claude 3 Opus Vs. Google Gemini Vs. GPT-4 for Zero-Shot Text Classification
Programming
Computer Science
1 Month Ago
by usmanmalik57
….environ['GOOGLE_APPLICATION_CREDENTIALS'] = &
quot
;PATH_TO_VERTEX_AI_SERVICE_ACCOUNT JSON FILE&
quot
; ``` The rest of the process is straight-forward. You must create an
Object
of the `GenerativeModel…
Why am getting different syntax errors when running a Python script
Programming
Software Development
2 Months Ago
by Tom_45
… new to Python, but have a solid understanding of how
object
oriented design works, having taught myself VB.NET, C# and…
Extract Tabular Data from PDF Images using Hugging Face Table Transformer
Programming
Computer Science
2 Months Ago
by usmanmalik57
… image
object
with the cropped area cropped_image = image.copy().crop((table[&
quot
;xmin&
quot
;] -padding, table[&
quot
;ymin&
quot
;] - padding, table[&
quot
;xmax&
quot
;] + padding, table[&
quot
;ymax&
quot
…
Retrieval Augmented Generation (RAG) with Google Gemma From HuggingFace
Programming
Computer Science
1 Month Ago
by usmanmalik57
…want. The following script creates an
object
of the `RecursiveCharacterTextSplitter` class. …
quot
; final_response = generate_response(query) print(&
quot
;===================================&
quot
;) print(&
quot
;RESPONSE FROM RAG MODEL&
quot
;) print(&
quot
;===================================&
quot
;) print(final_response.split(&
quot
;<end>&
quot
…
Re: How can I upload a tar.bz2 file to openstack swift object storage container
Programming
Software Development
1 Month Ago
by Salem
…. Is it being re-compressed again when you say &
quot
;content_type='application/gzip'&
quot
; ? It might be worth comparing the local and…
Re: Add property to standard object
Programming
Web Development
1 Month Ago
by jkon
I completely agree with you with the &
quot
;hackily&
quot
; part , but here it is: $arr = [ 'foo' => 'bar', 'baz' => 'bat' ]; $obj = json_decode(json_encode($arr)); $obj->newProperty = &
quot
;something&
quot
;; var_export($obj); exit;
Re: Add property to standard object
Programming
Web Development
1 Month Ago
by Dani
> $obj->newProperty = &
quot
;something&
quot
;; For some reason I thought that PHP didn't allow that without throwing an error?! (Hence the reason for me posting this question). I'm on PHP 8.2/8.3.
Re: Get error please help me the server threw an exception.
Programming
Software Development
2 Months Ago
by tinstaafl
Have you tried looking at the answers on this page? [Click Here](https://stackoverflow.com/questions/973206/what-causes-error-hresult-0x80010105-rpc-e-serverfault)
Re: Getting Started With C# - The List
Programming
Software Development
1 Month Ago
by Shahzad111
C-Sharp Tutorial is for student and prefessional who want to learn C# programming from basic to advance. We have discussed every topic of C# alonge with examples in this tutorial guide. https://c-sharptutorial.com/
Re: Fine-Tuning OpenAI Whisper Model for Audio Classification in PyTorch
Programming
Computer Science
2 Months Ago
by habi_2
how to use the best_model.pt
Re: how convert cur images to image?
Programming
Software Development
2 Months Ago
by pritaeas
Not easy, but [here](https://github.com/thetrik/VbPng)'s a lot of information. Basically, it's an [ICO file](https://docs.fileformat.com/image/cur/).
Re: how convert cur images to image?
Programming
Software Development
2 Months Ago
by cambalinho
damn i can't edit.. it's VB2010 and not VB6... but the tags is vb.net... i'm sorry
Re: how convert cur images to image?
Programming
Software Development
2 Months Ago
by Reverend Jim
Why not just load it into paint.exe then save as whatever format you want? Or you could download [ffmpeg](https://ffmpeg.org/) (free) and do ffmpeg -i myfile.ico myfile.jpg (or whatever format you want) ffmpeg can also be used to convert video between any formats. Also subtitle files. ffmpeg is a portable app (no installation required)…
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC